Fix argument bug in default name of copy of copy of ammo scheme
authorWuzzy <almikes@aol.com>
Fri, 06 Oct 2017 20:28:11 +0200
changeset 12663 d7492247a368
parent 12662 7b319fac46e2
child 12664 943b258d5443
Fix argument bug in default name of copy of copy of ammo scheme
QTfrontend/ui/widget/selectWeapon.cpp
--- a/QTfrontend/ui/widget/selectWeapon.cpp	Fri Oct 06 20:17:12 2017 +0200
+++ b/QTfrontend/ui/widget/selectWeapon.cpp	Fri Oct 06 20:28:11 2017 +0200
@@ -327,7 +327,7 @@
         {
             //name already used -> look for an appropriate name:
             int i=2;
-            while(wconf->contains(newName = tr("Copy of %1 (%2)").arg(curWeaponsName, i++)));
+            while(wconf->contains(newName = tr("Copy of %1 (%2)").arg(curWeaponsName).arg(i++)));
         }
         setWeaponsName(newName);
         setWeapons(ammo);