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

View File

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