From 3cbf84f98be6c07df52f103d56ec347d35740963 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sun, 22 Aug 2021 13:40:57 +0300 Subject: Fix ClearMissionAudio crash --- src/audio/AudioManager.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/audio') diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index 14af25bf..4cebe118 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -119,7 +119,11 @@ public: VALIDATE_SIZE(cPedComments, 0x490); +#ifdef FIX_BUGS // LCS extends the number of mission slots but not audio channels, the game would crash on ClearMissionAudio trying to stop channels that don't exist +#define MISSION_AUDIO_SLOTS (2) +#else #define MISSION_AUDIO_SLOTS (5) +#endif // name made up class cAudioScriptObjectManager -- cgit v1.2.3