mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
do not cache result if array count 0
This commit is contained in:
@@ -37,7 +37,9 @@ TraderDialogLoadItemList = {
|
||||
PVDZE_plr_TradeMenu = [_activatingPlayer,_trader_id];
|
||||
publicVariableServer "PVDZE_plr_TradeMenu";
|
||||
waitUntil {!isNil "PVDZE_plr_TradeMenuResult"};
|
||||
missionNamespace setVariable [(format["tcacheBuy_%1;",_trader_id]),PVDZE_plr_TradeMenuResult];
|
||||
if (count PVDZE_plr_TradeMenuResult > 0) then {
|
||||
missionNamespace setVariable [(format["tcacheBuy_%1;",_trader_id]),PVDZE_plr_TradeMenuResult];
|
||||
};
|
||||
};
|
||||
|
||||
lbClear TraderDialogItemList;
|
||||
|
||||
Reference in New Issue
Block a user