# HG changeset patch
# User unc0rr
# Date 1210427070 0
# Node ID b3d097097b54348d1ebc52123f4406e364099c9f
# Parent  63c52f8d5cfd6748904c7f72813f7e6170bc72e9
Use default ammostore string size for weapons number instead of predefined const

diff -r 63c52f8d5cfd -r b3d097097b54 QTfrontend/pages.cpp
--- 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);