From 690912e209412eebf361fa17684ff5af5b8ae4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Thu, 25 Apr 2024 20:02:40 +0200 Subject: [PATCH] Fix invalid sound index used when loading external sound fails This should be highly unlikely because external sound mapres were never supported by the editor. --- src/game/editor/mapitems/sound.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/editor/mapitems/sound.h b/src/game/editor/mapitems/sound.h index 13a2290c6..360d54546 100644 --- a/src/game/editor/mapitems/sound.h +++ b/src/game/editor/mapitems/sound.h @@ -10,7 +10,7 @@ public: explicit CEditorSound(CEditor *pEditor); ~CEditorSound(); - int m_SoundId = 0; + int m_SoundId = -1; char m_aName[IO_MAX_PATH_LENGTH] = ""; void *m_pData = nullptr;