QTfrontend/hwform.cpp
changeset 681 7a20c50988ec
parent 674 a15c8e3c69b3
child 683 57d624f71e65
--- a/QTfrontend/hwform.cpp	Wed Dec 19 07:38:36 2007 +0000
+++ b/QTfrontend/hwform.cpp	Wed Dec 19 11:10:23 2007 +0000
@@ -38,6 +38,7 @@
 #include "game.h"
 #include "team.h"
 #include "teamselect.h"
+#include "selectWeapon.h"
 #include "gameuiconfig.h"
 #include "pages.h"
 #include "hwconsts.h"
@@ -549,7 +550,7 @@
 
 void HWForm::CreateGame(GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget)
 {
-	game = new HWGame(config, gamecfg, pTeamSelWidget);
+	game = new HWGame(config, gamecfg, ui.pageSelectWeapon->pWeapons->getWeaponsString(), pTeamSelWidget);
 	connect(game, SIGNAL(GameStateChanged(GameState)), this, SLOT(GameStateChanged(GameState)));
 	connect(game, SIGNAL(GameStats(char, const QString &)), this, SLOT(GameStats(char, const QString &)));
 	connect(game, SIGNAL(ErrorMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);