Fixed crash in follow the leader mode.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-05-09 01:32:45 +00:00
parent 196a1dc1dd
commit 7ba2e36d89

View File

@ -60,7 +60,8 @@ public:
void playSfx(unsigned int id); void playSfx(unsigned int id);
void startMusic(MusicInformation* mi); void startMusic(MusicInformation* mi);
void stopMusic(); void stopMusic();
void update(float dt) {m_current_music->update(dt); } void update(float dt) {if(m_current_music)
m_current_music->update(dt); }
void pauseMusic() {m_current_music->pauseMusic(); } void pauseMusic() {m_current_music->pauseMusic(); }
void resumeMusic() {m_current_music->resumeMusic(); } void resumeMusic() {m_current_music->resumeMusic(); }
void switchToFastMusic() {m_current_music->switchToFastMusic(); } void switchToFastMusic() {m_current_music->switchToFastMusic(); }