From f16ec562e355725f965c28e99cd03b6f3d26c1aa Mon Sep 17 00:00:00 2001 From: Barichello Date: Sat, 19 Feb 2022 01:45:37 -0300 Subject: Update OnHardpointLeft player removal --- Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut index 80cf84130..693816d08 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut @@ -667,7 +667,7 @@ void function OnHardpointLeft( entity trigger, entity player ) if ( player.GetTeam() == TEAM_IMC ) hardpoint.imcCappers.remove( hardpoint.imcCappers.find( player ) ) else - hardpoint.militiaCappers.remove( hardpoint.militiaCappers.find( player ) ) + FindAndRemove( hardpoint.militiaCappers, player ) foreach(CP_PlayerStruct playerStruct in file.players) if(playerStruct.player == player) playerStruct.isOnHardpoint = false -- cgit v1.2.3