do not cache result if array count 0

This commit is contained in:
[VB]AWOL
2014-02-11 20:10:21 -06:00
parent 45b0322425
commit b00c2acbcb

View File

@@ -37,8 +37,10 @@ TraderDialogLoadItemList = {
PVDZE_plr_TradeMenu = [_activatingPlayer,_trader_id];
publicVariableServer "PVDZE_plr_TradeMenu";
waitUntil {!isNil "PVDZE_plr_TradeMenuResult"};
if (count PVDZE_plr_TradeMenuResult > 0) then {
missionNamespace setVariable [(format["tcacheBuy_%1;",_trader_id]),PVDZE_plr_TradeMenuResult];
};
};
lbClear TraderDialogItemList;
_item_list = [];