mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +03:00
Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker than forEach.
This commit is contained in:
@@ -18,7 +18,7 @@ TraderCatList = [];
|
||||
private ["_index", "_x"];
|
||||
_index = lbAdd [TraderDialogCatList, _x select 0];
|
||||
TraderCatList set [count TraderCatList, _x select 1];
|
||||
} forEach _trader_data;
|
||||
} count _trader_data;
|
||||
waitUntil { !dialog };
|
||||
TraderCurrentCatIndex = -1;
|
||||
TraderCatList = -1;
|
||||
Reference in New Issue
Block a user