Stop sound, before unloading.

This commit is contained in:
johns 2002-03-25 00:44:31 +00:00
parent 690448fd97
commit c25b7c457f

View file

@ -294,11 +294,11 @@ global void PlayMusic(const char* name)
global void StopMusic(void)
{
if( PlayingMusic ) {
PlayingMusic=0; // Callback!
if( ModFile ) {
ModPlug_Unload(ModFile);
ModFile=NULL;
}
PlayingMusic=0;
}
}