[Bug Fix] Fix NPC::CanTalk() Crash (#4499)

* [Bug FIx] Fix NPC::CanTalk() Crash

* Update npc.cpp

* Update mob.cpp

* Update npc.cpp
This commit is contained in:
Alex King
2024-10-07 01:17:49 -04:00
committed by GitHub
parent 1fb7a860a1
commit 8568cf7d49
2 changed files with 248 additions and 26 deletions
+2 -1
View File
@@ -4068,7 +4068,8 @@ uint8 Mob::GetDefaultGender(uint16 in_race, uint8 in_gender) {
in_race == Race::Human2 ||
in_race == Race::ElvenGhost ||
in_race == Race::HumanGhost ||
in_race == Race::Coldain2
in_race == Race::Coldain2 ||
in_race == Race::Akheva
) {
if (in_gender >= Gender::Neuter) { // Male default for PC Races
return Gender::Male;