From e7028cbee5476dd799c76f4d28ef52a61bccaedb Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Sat, 19 Dec 2020 15:40:28 +0100 Subject: [PATCH] Handle undefined display for ZSC gui --- SQF/dayz_code/compile/player_updateGui.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/SQF/dayz_code/compile/player_updateGui.sqf b/SQF/dayz_code/compile/player_updateGui.sqf index cbbdb819b..dfaf9d3bc 100644 --- a/SQF/dayz_code/compile/player_updateGui.sqf +++ b/SQF/dayz_code/compile/player_updateGui.sqf @@ -328,6 +328,7 @@ if (dayz_humanitytarget != _string) then { // ZSC if (Z_singleCurrency) then { _display = uiNameSpace getVariable "ZSC_Money_Display"; + if (isNil "_display") exitWith {}; // not ready _ctrlZSC = _display displayCtrl 4900; _string = ""; if (Z_showCurrencyUI) then {