From 36fe6392480fb0d0f40776d9a9802f6ff9488be5 Mon Sep 17 00:00:00 2001 From: cypress Date: Thu, 21 Dec 2023 14:23:50 -0500 Subject: [PATCH] SERVER: Fix call to PF_FindFloat with value of 0 --- source/server/ai/zombie_core.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/server/ai/zombie_core.qc b/source/server/ai/zombie_core.qc index 07c248c..3f3d9bb 100644 --- a/source/server/ai/zombie_core.qc +++ b/source/server/ai/zombie_core.qc @@ -1501,7 +1501,7 @@ void() Zombie_ReassignSpawnIDs = // First, clear the list. zombie_spawn_points = 0; - while(num_spawns > -1) { + while(num_spawns > 0) { entity zombie_spawn = findfloat(world, spawn_id, num_spawns); if (zombie_spawn) { zombie_spawn.spawn_id = 0;