From cbdffd193c5f000c39e45a0eafa95629a0fb7696 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Mon, 23 Jun 2014 18:18:59 +0100 Subject: [PATCH] Attempted fix of thunder crash --- src/climate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/climate.c b/src/climate.c index 37bae75fda..326eefa150 100644 --- a/src/climate.c +++ b/src/climate.c @@ -228,7 +228,7 @@ static void climate_update_thunder_sound() if (_thunderStereoEcho) { // Play thunder on right side _thunderStereoEcho = 0; - climate_play_thunder(1, _thunderSoundId, _thunderVolume, 10000); + climate_play_thunder(1, _thunderSoundId == SOUND_THUNDER_1 ? SOUND_THUNDER_2 : SOUND_THUNDER_1, _thunderVolume, 10000); } else if (_thunderTimer != 0) { climate_update_lightning(); climate_update_thunder();