# HG changeset patch
# User Wuzzy <almikes@aol.com>
# Date 1507314491 -7200
# Node ID d7492247a368b8c0ffdad0fd0580996909c15187
# Parent  7b319fac46e2d75c6d1b38ff7a7733fe7b5a84b0
Fix argument bug in default name of copy of copy of ammo scheme

diff -r 7b319fac46e2 -r d7492247a368 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);