Let the game engine manage it's own sound scene. This is to fix bug 1415 (Patch...
[blender-staging.git] / intern / SoundSystem / intern / SND_DeviceManager.cpp
index d6f23ff5de4c7c018e6d6f6a429db9ff148e3ff1..37487686d71664096ccf38a920cf05f3213b1ba1 100644 (file)
@@ -78,6 +78,9 @@ void SND_DeviceManager::Unsubscribe()
                delete m_instance;
                m_instance = NULL;
        }
+       
+       if (m_subscriptions < 0)
+               m_subscriptions = 0;
 }