Skip to content

Commit c8831a0

Browse files
committed
fix(audio): remove static string causing initialization order crash in addAudioEvent
1 parent 116357c commit c8831a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Core/GameEngine/Source/Common/Audio/GameAudio.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@
7272

7373
///////////////////////////////////////////////////////////////////////////////////////////////////
7474

75-
static const AsciiString s_noSoundString("NoSound");
76-
7775
static const char* TheSpeakerTypes[] =
7876
{
7977
"2 Speakers",
@@ -409,7 +407,7 @@ void AudioManager::getInfoForAudioEvent( const AudioEventRTS *eventToFindAndFill
409407
//-------------------------------------------------------------------------------------------------
410408
AudioHandle AudioManager::addAudioEvent(const AudioEventRTS *eventToAdd)
411409
{
412-
if (eventToAdd->getEventName().isEmpty() || eventToAdd->getEventName() == s_noSoundString) {
410+
if (eventToAdd->getEventName().isEmpty() || eventToAdd->getEventName() == AsciiString("NoSound")) {
413411
return AHSV_NoSound;
414412
}
415413

0 commit comments

Comments
 (0)