changeset 1967 | 213d368a002f |
parent 1904 | 20348675b015 |
child 2369 | c3eb11f1ab3a |
--- a/QTfrontend/selectWeapon.cpp Sun Apr 12 15:24:08 2009 +0000 +++ b/QTfrontend/selectWeapon.cpp Sun Apr 12 15:30:41 2009 +0000 @@ -75,7 +75,8 @@ { wconf = new QSettings(cfgdir->absolutePath() + "/weapons.ini", QSettings::IniFormat, this); - wconf->setValue("Default", *cDefaultAmmoStore); + for(int i = 0; i < cDefaultAmmos.size(); ++i) + wconf->setValue(cDefaultAmmos[i].first, cDefaultAmmos[i].second); QStringList keys = wconf->allKeys(); for(int i = 0; i < keys.size(); i++)