- minor fix for last commit.

This commit is contained in:
Fledge68 2021-10-01 18:05:09 -05:00
parent d7e552fd44
commit aa89fb6eb6
2 changed files with 1 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View File

@ -1157,8 +1157,6 @@ void * CMenu::_gameSoundThread(void *obj)
free(soundBin);// no longer needed, now using decompressed newSound free(soundBin);// no longer needed, now using decompressed newSound
if(newSound != NULL && newSize != 0) if(newSound != NULL && newSize != 0)
m->m_gameSound.Load(newSound, newSize); m->m_gameSound.Load(newSound, newSize);
else
m->m_gameSound.FreeMemory();// frees newSound
} }
else else
m->m_gameSound.Load(soundBin, sndSize); m->m_gameSound.Load(soundBin, sndSize);
@ -1166,7 +1164,7 @@ void * CMenu::_gameSoundThread(void *obj)
if(m->m_gameSound.IsLoaded()) if(m->m_gameSound.IsLoaded())
m->m_gamesound_changed = true; m->m_gamesound_changed = true;
else else
m->m_gameSound.FreeMemory();// frees soundBin m->m_gameSound.FreeMemory();// frees soundBin or newSound
} }
else // no sound.bin or gc banner sound disabled else // no sound.bin or gc banner sound disabled
{ {