Reduce error log of PremadeSpecName

This commit is contained in:
Yunfan Li
2024-01-14 17:05:20 +08:00
parent 47f6ce821a
commit 368432963d

View File

@@ -171,7 +171,7 @@ bool PlayerbotAIConfig::Initialize()
{
std::ostringstream os;
os << "AiPlayerbot.PremadeSpecName." << cls << "." << spec;
premadeSpecName[cls][spec] = sConfigMgr->GetOption<std::string>(os.str().c_str(), "");
premadeSpecName[cls][spec] = sConfigMgr->GetOption<std::string>(os.str().c_str(), "", false);
for (uint32 level = 0; level < MAX_LEVEL; ++level) {
std::ostringstream os;
os << "AiPlayerbot.PremadeSpecLink." << cls << "." << spec << "." << level;