From bcb34e2acd63648c7bb7ce6f99278a0cae8d92f9 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 26 Mar 2020 23:19:22 -0500 Subject: [PATCH] Events - Fix "turretweapon" player event when retro --- addons/events/fnc_addPlayerEventHandler.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/events/fnc_addPlayerEventHandler.sqf b/addons/events/fnc_addPlayerEventHandler.sqf index d4ea15c35..4e755adad 100644 --- a/addons/events/fnc_addPlayerEventHandler.sqf +++ b/addons/events/fnc_addPlayerEventHandler.sqf @@ -65,7 +65,7 @@ private _id = switch (_type) do { }; case "turretweapon": { if (_applyRetroactively) then { - [GVAR(oldUnit), GVAR(oldUnit) currentWeaponTurret (GVAR(oldUnit) call CBA_fnc_turretPath), ""] call _function; + [GVAR(oldUnit), (vehicle GVAR(oldUnit)) currentWeaponTurret (GVAR(oldUnit) call CBA_fnc_turretPath), ""] call _function; }; [QGVAR(turretWeaponEvent), _function] call CBA_fnc_addEventHandler // return id };