Handle undefined display for ZSC gui

This commit is contained in:
AirwavesMan
2020-12-19 15:40:28 +01:00
parent 358e3244c6
commit e7028cbee5

View File

@@ -328,6 +328,7 @@ if (dayz_humanitytarget != _string) then {
// ZSC // ZSC
if (Z_singleCurrency) then { if (Z_singleCurrency) then {
_display = uiNameSpace getVariable "ZSC_Money_Display"; _display = uiNameSpace getVariable "ZSC_Money_Display";
if (isNil "_display") exitWith {}; // not ready
_ctrlZSC = _display displayCtrl 4900; _ctrlZSC = _display displayCtrl 4900;
_string = ""; _string = "";
if (Z_showCurrencyUI) then { if (Z_showCurrencyUI) then {