Merge pull request #242 from liyunfan1223/fix_misspell

[Configuration] Fix misspell
This commit is contained in:
Yunfan Li
2024-06-02 18:49:58 +08:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -277,7 +277,7 @@ bool PlayerbotAIConfig::Initialize()
addClassCommand = sConfigMgr->GetOption<int32>("AiPlayerbot.AddClassCommand", 1);
maintenanceCommand = sConfigMgr->GetOption<int32>("AiPlayerbot.MaintenanceCommand", 1);
autoGearCommand = sConfigMgr->GetOption<int32>("AiPlayerbot.AutoGearCommand", 1);
autoGearQualityLimit = sConfigMgr->GetOption<int32>("AiPlayerbot.autoGearQualityLimit", 3);
autoGearQualityLimit = sConfigMgr->GetOption<int32>("AiPlayerbot.AutoGearQualityLimit", 3);
autoGearScoreLimit = sConfigMgr->GetOption<int32>("AiPlayerbot.AutoGearScoreLimit", 0);
playerbotsXPrate = sConfigMgr->GetOption<int32>("AiPlayerbot.KillXPRate", 1);

View File

@@ -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;
}