mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-10 10:12:24 +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]);
|
const auto size = sizeof(male_height) / sizeof(male_height[0]);
|
||||||
|
|
||||||
if (race > size)
|
if (race >= size)
|
||||||
return 6.0f;
|
return 6.0f;
|
||||||
|
|
||||||
if (gender == 1)
|
if (gender == 1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user