This commit is contained in:
Benau 2018-04-21 10:25:05 +08:00
parent e0a5bd1027
commit 708d558528

View File

@ -75,7 +75,8 @@ void GameSetup::loadWorld()
{ {
assert(!m_tracks.empty()); assert(!m_tracks.empty());
// Disable accidentally unlocking of a challenge // Disable accidentally unlocking of a challenge
PlayerManager::getCurrentPlayer()->setCurrentChallenge(""); if (PlayerManager::getCurrentPlayer())
PlayerManager::getCurrentPlayer()->setCurrentChallenge("");
race_manager->setTimeTarget(0.0f); race_manager->setTimeTarget(0.0f);
race_manager->setReverseTrack(m_reverse); race_manager->setReverseTrack(m_reverse);
if (race_manager->getMinorMode() == RaceManager::MINOR_MODE_SOCCER) if (race_manager->getMinorMode() == RaceManager::MINOR_MODE_SOCCER)