From 2955f82c102fa8d89a6cbae09045c0ac4b57989c Mon Sep 17 00:00:00 2001 From: Panadur Date: Thu, 24 Oct 2013 10:14:40 +0200 Subject: [PATCH] Update player_loadCrate.sqf Prevents unpacking non existing supply crates. --- SQF/dayz_code/actions/player_loadCrate.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/player_loadCrate.sqf b/SQF/dayz_code/actions/player_loadCrate.sqf index 990da45fe..e9a59f020 100644 --- a/SQF/dayz_code/actions/player_loadCrate.sqf +++ b/SQF/dayz_code/actions/player_loadCrate.sqf @@ -11,7 +11,7 @@ if(!_hasTool) exitWith { _item = _this; _hasCrate = _item in magazines player; -if (!_hasCrate) then { +if (!_hasCrate) exitWith { cutText ["\n\nMissing supply crate.", "PLAIN DOWN"]; TradeInprogress = false; }; @@ -53,4 +53,4 @@ player reveal _box; cutText ["\n\nOpened supply crate.", "PLAIN DOWN"]; -TradeInprogress = false; \ No newline at end of file +TradeInprogress = false;