Update EPOCH_simulSwap.sqf

Throw _object instead of _objtype to EPOCH_isBuildAllowed, so it can be ignored by counting elements
This commit is contained in:
He-Man 2016-12-10 20:30:50 +01:00 committed by GitHub
parent 51f4564550
commit 2418d08ee5

View File

@ -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;