mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-23 19:52:25 +00:00
Off by 1 error in size check
This commit is contained in:
parent
72349ddbb6
commit
c487acbf1a
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user