From 81729c26f454994cadacd2880b5bf93a5e14eb38 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Thu, 31 Jul 2014 13:33:51 -0400 Subject: [PATCH] Change count back to forEach Can not nest count loops inside other count loops: https://community.bistudio.com/wiki/Code_Optimisation#forEach_vs_count --- SQF/dayz_code/compile/fn_checkItems.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_checkItems.sqf b/SQF/dayz_code/compile/fn_checkItems.sqf index dd94496a4..958f62500 100644 --- a/SQF/dayz_code/compile/fn_checkItems.sqf +++ b/SQF/dayz_code/compile/fn_checkItems.sqf @@ -41,5 +41,5 @@ _hasItems = true; _textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName"); cutText [format[(localize "STR_EPOCH_ACTIONS_12"), _missingQty, _textMissing], "PLAIN DOWN"]; }; -} count _items; +} forEach _items; _hasItems