QTfrontend/pages.cpp
changeset 923 b3d097097b54
parent 788 00720357601f
child 1066 1f1b3686a2b0
--- a/QTfrontend/pages.cpp	Fri May 09 20:03:53 2008 +0000
+++ b/QTfrontend/pages.cpp	Sat May 10 13:44:30 2008 +0000
@@ -635,13 +635,13 @@
 	pageLayout->addWidget(BtnBack, 1, 0);
 }
 
-PageSelectWeapon::PageSelectWeapon(QWidget* parent) : 
+PageSelectWeapon::PageSelectWeapon(QWidget* parent) :
   AbstractPage(parent)
 {
 	QGridLayout * pageLayout = new QGridLayout(this);
 	pageLayout->setMargin(25);
-        
-        pWeapons=new SelWeaponWidget(20, this);
+	
+	pWeapons=new SelWeaponWidget(cDefaultAmmoStore->size() - 10, this);
 	pageLayout->addWidget(pWeapons, 0, 0, 1, 4);
 
 	BtnBack = addButton(tr("Back"), pageLayout, 1, 0);