From 79bbc2c5a4b21ef5bfd69fbddd7bd8e8695ec105 Mon Sep 17 00:00:00 2001 From: Kobayashi Date: Sat, 31 Dec 2016 15:03:16 -0600 Subject: [PATCH] Backwards array call to Z_checkArrayInConfig (#1845) Z_checkArrayInConfig is expecting weapons in position 0 for _this, all other stuff like get z_at_getGearItems.sqf and z_at_getVehicleItems.sqf passes the weapons array in position 0. --- .../actions/AdvancedTrading/functions/z_at_getBackpackItems.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_getBackpackItems.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_getBackpackItems.sqf index dc95f8c51..5569f6ca1 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_getBackpackItems.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_getBackpackItems.sqf @@ -25,5 +25,5 @@ if (!isNull _backpack) then { _normalMags = _freeSpace select 5; _normalWeaps = _freeSpace select 6; - [_normalMags,_normalWeaps, typeOf _backpack,[]] call Z_checkArrayInConfig; + [_normalWeaps, _normalMags, typeOf _backpack,[]] call Z_checkArrayInConfig; };