Update initDoorManagement.sqf

After upgrading or downgrading doors or gates TheDoor can be null.
This commit is contained in:
AirwavesMan
2020-06-18 15:43:23 +02:00
parent 7a19c7abef
commit bfa16b499e

View File

@@ -13,6 +13,7 @@ _display = findDisplay 61144;
_display closeDisplay 2;
// Check player access
if (!isNull TheDoor) then {
_hasAccess = [player, TheDoor] call FNC_check_access;
if (
(_hasAccess select 0) or // door owner
@@ -28,3 +29,6 @@ if (
} else {
localize "STR_EPOCH_DOORMANAGEMENT_NORIGHTS" call dayz_rollingMessages;
};
} else {
localize "str_cursorTargetNotFound" call dayz_rollingMessages;
};