Stop sound, before unloading.
This commit is contained in:
parent
690448fd97
commit
c25b7c457f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue