Sound system: Fix endless recursion when a sound couldn't be started due to lack of free channels

Sven Eberhardt 2012-10-07 16:34:08 +02:00
parent f296f31c62
commit 6e953acc88
1 changed files with 2 additions and 0 deletions

View File

@ -286,6 +286,8 @@ bool C4SoundInstance::Start()
#else
return false;
#endif
// Safety: Don't execute if start failed, or Execute() would try to start again
if (!isStarted()) return false;
// Update volume
Execute();
return true;