mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
[Crash Fix] Pet initialization
This commit is contained in:
parent
4b9af119c4
commit
00b6426c8f
@ -583,7 +583,7 @@ void PlayerbotFactory::InitPetTalents()
|
||||
return;
|
||||
}
|
||||
CreatureFamilyEntry const* pet_family = sCreatureFamilyStore.LookupEntry(ci->family);
|
||||
if (pet_family->petTalentType < 0) {
|
||||
if (!pet_family || pet_family->petTalentType < 0) {
|
||||
// LOG_INFO("playerbots", "{} init pet talents failed with petTalentType < 0({})", bot->GetName().c_str(), pet_family->petTalentType);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user