Skip to content

Commit

Permalink
Use LINKFUNC
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Jun 10, 2024
1 parent a69b5b4 commit 942879a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/hearing/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ GVAR(lastPlayerVehicle) = objNull;
};

if ((!isNull _vehicle) && {_player != _vehicle}) then {
private _firedEH = _vehicle addEventHandler ["FiredNear", {call FUNC(firedNear)}];
private _firedEH = _vehicle addEventHandler ["FiredNear", LINKFUNC(firedNear)];
_vehicle setVariable [QGVAR(firedEH), _firedEH];
GVAR(lastPlayerVehicle) = _vehicle;
TRACE_2("added veh eh",_firedEH,GVAR(lastPlayerVehicle));
Expand Down

0 comments on commit 942879a

Please sign in to comment.