diff --git a/dat/planet.xml b/dat/planet.xml index e9c0fd7..3fefa82 100644 --- a/dat/planet.xml +++ b/dat/planet.xml @@ -23,7 +23,7 @@
3
31 - A + M diff --git a/src/sound.c b/src/sound.c index 1f1de14..8672a3f 100644 --- a/src/sound.c +++ b/src/sound.c @@ -78,10 +78,10 @@ void sound_exit(void) { int i; /* Free the sounds. */ - sound_free(&sound_list[i]); + for(i = 0; i < sound_nlist; i++) + sound_free(&sound_list[i]); free(sound_list); sound_list = NULL; - sound_nlist = 0; music_exit();