SERVER: Further mitigate PF_findfloat errors

This commit is contained in:
cypress 2023-12-23 16:03:41 -05:00
parent 96b08dcaba
commit 997d6748e9

View file

@ -1507,7 +1507,9 @@ void() Zombie_ReassignSpawnIDs =
zombie_spawn.spawn_id = 0;
}
num_spawns--;
zombie_spawn = findfloat(world, spawn_id, num_spawns);
if (num_spawns)
zombie_spawn = findfloat(world, spawn_id, num_spawns);
}
// Now do the re-assignment