Properly fixed bug 3072032 (crash when doing a challenge) - the call

to computeRandomKartList is not necessary, the real problem was that
the game data structure was set up before the new data was
defined (e.g. data was initialised for previous number of karts,
after initialisation the correct number of karts was set, causing
a crash).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6100 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-09-21 04:04:49 +00:00
parent f9ac707095
commit 248c12c3a2

View File

@ -149,11 +149,11 @@ void ChallengesScreen::eventCallback(GUIEngine::Widget* widget, const std::strin
//FIXME: why do we need to invoke the network manager for local games??
network_manager->initCharacterDataStructures();
network_manager->setupPlayerKartInfo();
// Launch challenge
unlock_manager->getChallenge(selection)->setRace();
race_manager->computeRandomKartList();
network_manager->setupPlayerKartInfo();
//race_manager->computeRandomKartList();
race_manager->startNew();
}
}