We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c41df0e commit 99c123eCopy full SHA for 99c123e
src/main.cpp
@@ -3920,6 +3920,7 @@ void game_loop(void)
3920
StopMusicPlayer();
3921
free_custom_music();
3922
free_sound_chunks();
3923
+ memset(&game.loaded_sound,0,DISKPATH_SIZE * EXTERNAL_SOUNDS_COUNT);
3924
turn_off_all_menus();
3925
delete_all_structures();
3926
clear_mapwho();
src/sounds.c
@@ -843,7 +843,6 @@ void free_sound_chunks()
843
{
844
Mix_FreeChunk(Ext_Sounds[i]);
845
Ext_Sounds[i] = NULL;
846
- memset(game.loaded_sound[i],0,DISKPATH_SIZE);
847
}
848
849
game.sounds_count = 0;
0 commit comments