Update player_loadCrate.sqf

Prevents unpacking non existing supply crates.
This commit is contained in:
Panadur
2013-10-24 10:14:40 +02:00
parent c192b68726
commit 2955f82c10

View File

@@ -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;
TradeInprogress = false;