Skip to content

Commit

Permalink
server: fix infinite loop while trying to look for spawn spot for dea…
Browse files Browse the repository at this point in the history
…thmatch

Fixes: 253a3cb ("Better spawn spot randomization from HL25 update.")
  • Loading branch information
a1batross committed Oct 17, 2024
1 parent 006d830 commit 13086d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2815,7 +2815,7 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer )
nNumRandomSpawnsToTry = 0;
CBaseEntity* pEnt = 0;

while( ( pEnt = UTIL_FindEntityByClassname( 0, "info_player_deathmatch" )))
while( ( pEnt = UTIL_FindEntityByClassname( pEnt, "info_player_deathmatch" )))
nNumRandomSpawnsToTry++;
}

Expand Down

0 comments on commit 13086d3

Please sign in to comment.