From ee139cf02a5c64710981020da5df0db640de82c3 Mon Sep 17 00:00:00 2001 From: He-Man Date: Thu, 6 Dec 2018 16:10:29 +0100 Subject: [PATCH] BugFix by MGTDB --- Sources/epoch_code/compile/traders/EPOCH_startBankTransfer.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/epoch_code/compile/traders/EPOCH_startBankTransfer.sqf b/Sources/epoch_code/compile/traders/EPOCH_startBankTransfer.sqf index ac5ac1ce..f6081a78 100644 --- a/Sources/epoch_code/compile/traders/EPOCH_startBankTransfer.sqf +++ b/Sources/epoch_code/compile/traders/EPOCH_startBankTransfer.sqf @@ -2,6 +2,7 @@ if (isNull(findDisplay -13)) exitWith{}; // perform wait while menu is still open if (isNil "EPOCH_bankTransferActive") then { + if !(alive player) exitwith {}; EPOCH_bankTransferActive = true; ctrlEnable[1600, false]; @@ -33,6 +34,7 @@ if (isNil "EPOCH_bankTransferActive") then { _sleep = ((_totalTransfer * _timePerCrypto) min _maxWait) max _minWait; for "_i" from 0 to 100 do { if (isNull(findDisplay -13)) exitWith{}; + if !(alive player) exitwith {}; _progress = _progress + 1; if (_progress >= 100) exitWith{}; ctrlSetText[1200, format["\x\addons\a3_epoch_code\Data\UI\loading_bar_%1.paa", _progress]];