[Bots] Fix Gender not saving as GetBaseGender on BotSave (#2639)

Bots were not saving their Base Gender when saving. This could result in bots with illusions saving as gender 2 and becoming a male human model upon illusion fade.

Co-authored-by: toxin06 <53322305+toxin06@users.noreply.github.com>
This commit is contained in:
nytmyr 2022-12-13 10:40:59 -06:00 committed by GitHub
parent c3cb0b8cdf
commit 7189bab848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -549,7 +549,7 @@ bool BotDatabase::SaveBot(Bot* bot_inst)
l.title = bot_inst->GetTitle();
l.suffix = bot_inst->GetSuffix();
l.zone_id = bot_inst->GetLastZoneID();
l.gender = bot_inst->GetGender();
l.gender = bot_inst->GetBaseGender();
l.race = bot_inst->GetBaseRace();
l.class_ = bot_inst->GetClass();
l.level = bot_inst->GetLevel();