From 942879a91e3eea3a0b4e92aa8ac6999e32bbad2c Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Mon, 10 Jun 2024 10:43:30 +0200 Subject: [PATCH] Use `LINKFUNC` --- addons/hearing/XEH_postInit.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hearing/XEH_postInit.sqf b/addons/hearing/XEH_postInit.sqf index 19f28a244c..1fdd8008bc 100644 --- a/addons/hearing/XEH_postInit.sqf +++ b/addons/hearing/XEH_postInit.sqf @@ -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));