mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-25 14:15:46 +00:00
Fix crash on minimize + reactivate
This commit is contained in:
parent
cf6556b94d
commit
f825ad9fb7
1 changed files with 1 additions and 1 deletions
|
@ -977,7 +977,7 @@ FMOD_RESULT OpenALChannel::setPaused(const bool _paused, const bool setstate)
|
|||
}
|
||||
else if ((!_paused) && (initial || ((state == AL_INITIAL) || (state == AL_PAUSED))))
|
||||
{
|
||||
if (initial)
|
||||
if (initial && decoder)
|
||||
{
|
||||
decoder->setForceMono(mindist || maxdist); // HACK: this is set for positional sounds.
|
||||
decoder->start(sound->isLooping());
|
||||
|
|
Loading…
Reference in a new issue