Fix invalid timer handle error when ambient sounds are disabled.

This commit is contained in:
Richard Helgeby 2014-09-14 14:03:53 +02:00
parent 42a2037f30
commit 8d6819c75c
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ AmbientSoundsRestart()
if (tAmbientSounds != INVALID_HANDLE)
{
KillTimer(tAmbientSounds);
tAmbientSounds == INVALID_HANDLE;
}
// If ambience is disabled, then stop.