From 2418d08ee5459c4a22fbf14429c21807cbb7b135 Mon Sep 17 00:00:00 2001 From: He-Man Date: Sat, 10 Dec 2016 20:30:50 +0100 Subject: [PATCH] Update EPOCH_simulSwap.sqf Throw _object instead of _objtype to EPOCH_isBuildAllowed, so it can be ignored by counting elements --- Sources/epoch_code/compile/building/EPOCH_simulSwap.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/building/EPOCH_simulSwap.sqf b/Sources/epoch_code/compile/building/EPOCH_simulSwap.sqf index 09630fcd..c8725abf 100644 --- a/Sources/epoch_code/compile/building/EPOCH_simulSwap.sqf +++ b/Sources/epoch_code/compile/building/EPOCH_simulSwap.sqf @@ -37,7 +37,7 @@ _isSnap = false; if (EPOCH_playerEnergy <= 0) exitWith { ["Need Energy", 5] call Epoch_message; }; -if !(_objType call EPOCH_isBuildAllowed) exitWith{}; +if !(_object call EPOCH_isBuildAllowed) exitWith{}; EPOCH_simulSwap_Lock = true; _return = _object;