aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
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 /Northstar.CustomServers/mod/scripts
parentd61f55337296574ed5eb177833b665663fe1d121 (diff)
downloadNorthstarMods-f16ec562e355725f965c28e99cd03b6f3d26c1aa.tar.gz
NorthstarMods-f16ec562e355725f965c28e99cd03b6f3d26c1aa.zip
Update OnHardpointLeft player removal
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-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 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