mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Crash Fix] Pet initialization
This commit is contained in:
@@ -583,7 +583,7 @@ void PlayerbotFactory::InitPetTalents()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CreatureFamilyEntry const* pet_family = sCreatureFamilyStore.LookupEntry(ci->family);
|
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);
|
// LOG_INFO("playerbots", "{} init pet talents failed with petTalentType < 0({})", bot->GetName().c_str(), pet_family->petTalentType);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user