From f825ad9fb701cd516ab0138f19c30fc0874b28cb Mon Sep 17 00:00:00 2001 From: fgenesis Date: Fri, 26 Jul 2013 02:15:40 +0200 Subject: [PATCH] Fix crash on minimize + reactivate --- BBGE/FmodOpenALBridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BBGE/FmodOpenALBridge.cpp b/BBGE/FmodOpenALBridge.cpp index f845248..320f4b4 100644 --- a/BBGE/FmodOpenALBridge.cpp +++ b/BBGE/FmodOpenALBridge.cpp @@ -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());