Fix #3191
This commit is contained in:
parent
e0a5bd1027
commit
708d558528
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user