QTfrontend/hwform.cpp
changeset 207 287077789132
parent 187 96c3154efee5
child 213 c5480c5b11ff
--- a/QTfrontend/hwform.cpp	Fri Oct 27 14:30:36 2006 +0000
+++ b/QTfrontend/hwform.cpp	Fri Oct 27 19:37:59 2006 +0000
@@ -253,7 +253,8 @@
 	game = new HWGame(config, ui.pageMultiplayer->gameCFG);
 	list<HWTeam> teamslist=ui.pageMultiplayer->teamsSelect->getPlayingTeams();
 	for (list<HWTeam>::const_iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
-	  game->AddTeam(it->TeamName, ui.pageMultiplayer->teamsSelect->numHedgedogs(it->TeamName));
+	  HWTeamTempParams params=ui.pageMultiplayer->teamsSelect->getTeamParams(it->TeamName);
+	  game->AddTeam(it->TeamName, params.numHedgehogs);
 	}
 	game->StartLocal();
 }