From fd8d9655db277deb687dd26bd403a26ab5d970e4 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Tue, 13 Nov 2018 16:06:14 +1100 Subject: [PATCH] fix race issue with selecting new leader --- gamemodes/irresistible/cnr/features/race.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/race.pwn b/gamemodes/irresistible/cnr/features/race.pwn index 9cb83ec..f24232a 100644 --- a/gamemodes/irresistible/cnr/features/race.pwn +++ b/gamemodes/irresistible/cnr/features/race.pwn @@ -844,7 +844,7 @@ stock GetClosestRacer( playerid, raceid, exceptid = INVALID_PLAYER_ID, &Float: d if ( GetPlayerPos( playerid, fX, fY, fZ ) ) { - foreach (new i : Player) if ( p_raceLobbyId[ i ] == raceid && exceptid != i && GetPlayerVehicleSeat( playerid ) == 0 ) + foreach ( new i : Player ) if ( p_raceLobbyId[ i ] == raceid && exceptid != i && GetPlayerVehicleSeat( i ) == 0 ) { if ( 0.0 < ( fTmp = GetPlayerDistanceFromPoint( i, fX, fY, fZ ) ) < distance ) {