From 90b76d4ed5ab6dc9b0869ec68d70f79e07fe31d4 Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Mon, 29 Mar 2021 17:26:19 +0200 Subject: [PATCH] Add isNull check --- SQF/dayz_code/actions/remove.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SQF/dayz_code/actions/remove.sqf b/SQF/dayz_code/actions/remove.sqf index f9bdc26ad..618319a31 100644 --- a/SQF/dayz_code/actions/remove.sqf +++ b/SQF/dayz_code/actions/remove.sqf @@ -11,6 +11,9 @@ player removeAction s_player_deleteBuild; s_player_deleteBuild = 1; _obj = _this select 3; + +if (isNull _obj) exitWith {dayz_actionInProgress = false; systemChat localize "str_cursorTargetNotFound";}; + _objOwnerID = "0"; _isOwnerOfObj = false;