diff --git a/common/races.cpp b/common/races.cpp index 1e4d88664..331ee8e7e 100644 --- a/common/races.cpp +++ b/common/races.cpp @@ -1596,7 +1596,7 @@ float GetRaceGenderDefaultHeight(int race, int gender) const auto size = sizeof(male_height) / sizeof(male_height[0]); - if (race > size) + if (race >= size) return 6.0f; if (gender == 1) diff --git a/zone/npc.cpp b/zone/npc.cpp index 96df168ff..ae4dae217 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -135,7 +135,7 @@ NPC::NPC(const NPCType* d, Spawn2* in_respawn, const glm::vec4& position, int if respawn2 = in_respawn; swarm_timer.Disable(); - if (size < 0.0f) + if (size <= 0.0f) size = GetRaceGenderDefaultHeight(race, gender); taunting = false;