From 8d6819c75ce1f7abd0aae9ab67ff67199e400753 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Sun, 14 Sep 2014 14:03:53 +0200 Subject: [PATCH] Fix invalid timer handle error when ambient sounds are disabled. --- src/zr/soundeffects/ambientsounds.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zr/soundeffects/ambientsounds.inc b/src/zr/soundeffects/ambientsounds.inc index 60d37bf..b0a645f 100644 --- a/src/zr/soundeffects/ambientsounds.inc +++ b/src/zr/soundeffects/ambientsounds.inc @@ -185,6 +185,7 @@ AmbientSoundsRestart() if (tAmbientSounds != INVALID_HANDLE) { KillTimer(tAmbientSounds); + tAmbientSounds == INVALID_HANDLE; } // If ambience is disabled, then stop.