From 5d62ab4125886ee3b44749d24d13a76cf25208dc Mon Sep 17 00:00:00 2001 From: Salluci Date: Sun, 2 Jul 2023 19:48:01 +0300 Subject: [PATCH] fix undefined variable --- addons/csw/functions/fnc_getNearbySources.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/csw/functions/fnc_getNearbySources.sqf b/addons/csw/functions/fnc_getNearbySources.sqf index 7c9e3e96ba..fec7b4c9b5 100644 --- a/addons/csw/functions/fnc_getNearbySources.sqf +++ b/addons/csw/functions/fnc_getNearbySources.sqf @@ -20,7 +20,7 @@ params ["_unit"]; params ["_unit"]; private _nearSupplies = (_unit nearSupplies 5) select { isNull (group _x) || - {!([_x] call EFUNC(common,isPlayer)) && {[side group _player, side group _x] call BIS_fnc_sideIsFriendly}} + {!([_x] call EFUNC(common,isPlayer)) && {[side group _unit, side group _x] call BIS_fnc_sideIsFriendly}} }; _nearSupplies pushBack _unit;