diff --git a/Sources/epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf b/Sources/epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf index 2cf63a91..e0dc126b 100644 --- a/Sources/epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf +++ b/Sources/epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf @@ -33,5 +33,10 @@ if (underwater player) then { if (_ins isEqualTo []) exitWith { objNull }; (_ins select 0 param [3,objNull]) } else { - cursorTarget + if (!isnull cursorTarget) then { + cursorTarget + } + else { + cursorobject + }; }