From 3c08c40e2e589864a659943545deaec0f8251eb1 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 26 Jan 2014 20:12:06 -0600 Subject: [PATCH] fixed abort --- SQF/dayz_code/actions/trade_items.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/trade_items.sqf b/SQF/dayz_code/actions/trade_items.sqf index 02a044123..15908e38f 100644 --- a/SQF/dayz_code/actions/trade_items.sqf +++ b/SQF/dayz_code/actions/trade_items.sqf @@ -136,12 +136,12 @@ while {r_autoTrade} do { _qty = {_x == _part_in} count magazines player; _needed = _qty_in - _qty; cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"]; + _abort = true; }; }; + if(_abort) exitWith {r_autoTrade = false}; sleep 1; - - if(_abort || !_canAfford) exitWith {r_autoTrade = false}; }; DZE_ActionInProgress = false;