Compare commits

...

2 Commits

Author SHA1 Message Date
Crow
f874d2c79e
Fix typo in server loading message (#1742) 2025-10-20 01:05:45 +02:00
SaW
5a4acbe36c
Update PvpValues.cpp (#1746)
Set uninitialized variable
Remove std::move
2025-10-20 01:04:11 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ void LoadListString(std::string const value, T& list)
bool PlayerbotAIConfig::Initialize() bool PlayerbotAIConfig::Initialize()
{ {
LOG_INFO("server.loading", "Initializing mod-playerbots, based on AI Playerbots by ike and the original Playerbots by blueboy"); LOG_INFO("server.loading", "Initializing mod-playerbots, based on AI Playerbots by ike3 and the original Playerbots by blueboy");
enabled = sConfigMgr->GetOption<bool>("AiPlayerbot.Enabled", true); enabled = sConfigMgr->GetOption<bool>("AiPlayerbot.Enabled", true);
if (!enabled) if (!enabled)

View File

@ -102,7 +102,7 @@ std::vector<CreatureData const*> BgMastersValue::Calculate()
} }
} }
return std::move(bmGuids); return bmGuids;
} }
CreatureData const* BgMasterValue::Calculate() CreatureData const* BgMasterValue::Calculate()
@ -120,7 +120,7 @@ CreatureData const* BgMasterValue::NearestBm(bool allowDead)
std::vector<CreatureData const*> bmPairs = AI_VALUE2(std::vector<CreatureData const*>, "bg masters", qualifier); std::vector<CreatureData const*> bmPairs = AI_VALUE2(std::vector<CreatureData const*>, "bg masters", qualifier);
float rDist; float rDist = 0.0f;
CreatureData const* rbmPair = nullptr; CreatureData const* rbmPair = nullptr;
for (auto& bmPair : bmPairs) for (auto& bmPair : bmPairs)