--- a/QTfrontend/newnetclient.cpp Fri Dec 05 21:40:23 2008 +0000
+++ b/QTfrontend/newnetclient.cpp Sat Dec 06 11:53:50 2008 +0000
@@ -481,7 +481,11 @@
onTeamsDivideChanged(m_pGameCFGWidget->getGameFlags() & 0x10);
onSolidChanged(m_pGameCFGWidget->getGameFlags() & 0x04);
// always initialize with default ammo (also avoiding complicated cross-class dependencies)
- onWeaponsNameChanged("Default", cDefaultAmmoStore->mid(10));
+ QString name = m_pGameCFGWidget->WeaponsName->currentText();
+ QString ammo = m_pGameCFGWidget->WeaponsName->itemData(
+ m_pGameCFGWidget->WeaponsName->currentIndex()
+ ).toString();
+ onWeaponsNameChanged(name, ammo);
}
void HWNewNet::RunGame()