aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-02-19 01:45:37 -0300
committerBarichello <artur@barichello.me>2022-02-19 01:45:37 -0300
commitf16ec562e355725f965c28e99cd03b6f3d26c1aa (patch)
tree772af4f707ccb91f88dcc55c98abdc82b6cf594e
parentd61f55337296574ed5eb177833b665663fe1d121 (diff)
downloadNorthstarMods-f16ec562e355725f965c28e99cd03b6f3d26c1aa.tar.gz
NorthstarMods-f16ec562e355725f965c28e99cd03b6f3d26c1aa.zip
Update OnHardpointLeft player removal
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_cp.nut
index 80cf8413..693816d0 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