From 1bb3f5a56a4621cb06c4b2b34e9d8b6d2b4af718 Mon Sep 17 00:00:00 2001 From: Wanne Date: Fri, 30 Aug 2013 18:21:01 +0000 Subject: [PATCH] - Multiplayer Bugfix: Fixed crash in RELEASE version, when entering tactical insertion screen o The game crashed in RELEASE version, because of uninitialized music variables which were introduced in revision 6296 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6338 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Utils/Music Control.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Utils/Music Control.cpp b/Utils/Music Control.cpp index 0222d061..dba1c520 100644 --- a/Utils/Music Control.cpp +++ b/Utils/Music Control.cpp @@ -30,11 +30,11 @@ static UINT8 gubOldMusicMode = 0; static INT8 gbVictorySongCount = 0; static INT8 gbDeathSongCount = 0; -static INT32 bNothingModeSong; -static INT32 bEnemyModeSong; -static INT32 bBattleModeSong; +static INT32 bNothingModeSong = NOTHING_A_MUSIC; +static INT32 bEnemyModeSong = TENSOR_A_MUSIC; +static INT32 bBattleModeSong = BATTLE_A_MUSIC; -static INT32 NewSoundID; +static INT32 NewSoundID = -1; static BOOLEAN SetSoundID = FALSE; static INT32 gubOldMusicMode2 = 0; @@ -76,7 +76,7 @@ BOOLEAN MusicFadeOut(void); BOOLEAN MusicFadeIn(void); MUSIC_SOUND_VALUES MusicSoundValues[256]; -INT32 GlobalSoundID; +INT32 GlobalSoundID = -1; //extern void HandleEndDemoInCreatureLevel( );