Fixed crash in case that no music is defined for a track.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6344 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
2cdd7c1745
commit
6881c51be8
@ -298,7 +298,9 @@ void LinearWorld::newLap(unsigned int kart_index)
|
||||
m_last_lap_sfx_played = true;
|
||||
m_last_lap_sfx_playing = true;
|
||||
|
||||
music_manager->getCurrentMusic()->setTemporaryVolume(0.2f);
|
||||
// In case that no music is defined
|
||||
if(music_manager->getCurrentMusic())
|
||||
music_manager->getCurrentMusic()->setTemporaryVolume(0.2f);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user