Reset default weapon set on restart
authorunc0rr
Fri, 31 Oct 2008 20:48:09 +0000
changeset 1456 2539dd079be1
parent 1455 7d0a4ecd8210
child 1457 44cc464de8f3
Reset default weapon set on restart
QTfrontend/selectWeapon.cpp
--- a/QTfrontend/selectWeapon.cpp	Fri Oct 31 20:47:48 2008 +0000
+++ b/QTfrontend/selectWeapon.cpp	Fri Oct 31 20:48:09 2008 +0000
@@ -75,11 +75,7 @@
 {
   wconf = new QSettings(cfgdir->absolutePath() + "/weapons.ini", QSettings::IniFormat, this);
 
-  if(wconf->value("Default", "").toString().size() != cDefaultAmmoStore->size() - 10)
-  {
-    wconf->clear();
-    wconf->setValue("Default", cDefaultAmmoStore->mid(10));
-  }
+  wconf->setValue("Default", cDefaultAmmoStore->mid(10));
 
   currentState=cDefaultAmmoStore->mid(10);