From 531c1c9f3b72e328d8e3435933ec53848d0c23a8 Mon Sep 17 00:00:00 2001 From: Moritz Schmidt Date: Sat, 4 Mar 2023 21:40:36 +0100 Subject: [PATCH 1/2] fix #208 --- addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf b/addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf index 39c4ed8..3fce986 100644 --- a/addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf +++ b/addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf @@ -30,7 +30,7 @@ if !(_weaponArray isEqualTo []) then { }; if ((_underbarrelMagazin isEqualType []) && {_underbarrelMagazin isNotEqualTo []} && {!isNil {_underbarrelMagazin select 0}})then { - _return pushBack (_tripleTab + format ["%1WeaponUnderbarrel = ""%2"";", _name, _underbarrelMagazin select 0]); + _return pushBack (_tripleTab + format ["%1WeaponUnderbarrelMagazine = ""%2"";", _name, _underbarrelMagazin select 0]); }; /* } else { From f304bd5046621b9f5007d5a6f891fc94225dc2da Mon Sep 17 00:00:00 2001 From: b-mayr-1984 Date: Sun, 12 Mar 2023 12:43:43 +0100 Subject: [PATCH 2/2] fixed code in comment of line 44 see discussion of #209 --- addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf b/addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf index 3fce986..fcfa09a 100644 --- a/addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf +++ b/addons/getLoadoutsFromUnits/functions/fnc_getWeapon.sqf @@ -41,7 +41,7 @@ if !(_weaponArray isEqualTo []) then { _tripleTab + format ["%1WeaponPointer = """";", _name], _tripleTab + format ["%1WeaponMuzzle = """";", _name], _tripleTab + format ["%1WeaponUnderbarrel = """";", _name], - _tripleTab + format ["%1WeaponUnderbarrel = """";", _name] + _tripleTab + format ["%1WeaponUnderbarrelMagazine = """";", _name] ]; */ };