Skip to content

Commit

Permalink
Merge pull request #1312 from CBATeam/fixCurWeaponTurretRetro
Browse files Browse the repository at this point in the history
Events - Fix "turretweapon" player event when retro
  • Loading branch information
commy2 authored Mar 27, 2020
2 parents 9b2d22e + bcb34e2 commit ffd7a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/events/fnc_addPlayerEventHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit ffd7a8a

Please sign in to comment.