From 7151f6859fb0484be5f985b80a18f3099da35f4c Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Wed, 4 Feb 2015 14:13:08 -0500 Subject: [PATCH] Fix trader menu expected array error TraderItemList and TraderCatList should be initialized as arrays, not numbers. Fixes this error: ``` Error in expression < 0; if (_index < 0) exitWith {}; while {count TraderItemList < 1} do { sleep 1; > Error position: Error count: Type Number, expected Array,Config entry File z\addons\dayz_code\compile\player_traderMenuHive.sqf, line 174 ``` See: https://github.com/vbawol/DayZ-Epoch/issues/1616 Tested buying and selling to all the stary and base traders as well as the boat dealer with these changes. No more error or problems. --- SQF/dayz_code/actions/show_dialog.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/show_dialog.sqf b/SQF/dayz_code/actions/show_dialog.sqf index 1c5ed5351..91fc1f344 100644 --- a/SQF/dayz_code/actions/show_dialog.sqf +++ b/SQF/dayz_code/actions/show_dialog.sqf @@ -11,7 +11,7 @@ lbClear TraderDialogCatList; lbClear TraderDialogItemList; TraderCurrentCatIndex = -1; -TraderItemList = -1; +TraderItemList = []; TraderCatList = []; { @@ -21,4 +21,4 @@ TraderCatList = []; } count _trader_data; waitUntil { !dialog }; TraderCurrentCatIndex = -1; -TraderCatList = -1; \ No newline at end of file +TraderCatList = [];