SERVER: Fix call to PF_FindFloat with value of 0

This commit is contained in:
cypress 2023-12-21 14:23:50 -05:00 committed by GitHub
parent f0b3b93e5e
commit 36fe639248
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1501,7 +1501,7 @@ void() Zombie_ReassignSpawnIDs =
// First, clear the list. // First, clear the list.
zombie_spawn_points = 0; zombie_spawn_points = 0;
while(num_spawns > -1) { while(num_spawns > 0) {
entity zombie_spawn = findfloat(world, spawn_id, num_spawns); entity zombie_spawn = findfloat(world, spawn_id, num_spawns);
if (zombie_spawn) { if (zombie_spawn) {
zombie_spawn.spawn_id = 0; zombie_spawn.spawn_id = 0;