mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-03 14:43:54 +00:00
Merge branch 'master' into wp_master
This commit is contained in:
commit
a87bf5681f
@ -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)
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user