Performance optim

This commit is contained in:
Yunfan Li
2024-04-11 11:02:42 +08:00
parent 839257cd1e
commit b474dc44bb
3 changed files with 19 additions and 18 deletions

View File

@@ -900,7 +900,7 @@ std::vector<std::string> PlayerbotHolder::HandlePlayerbotCommand(char const* arg
std::string const cmdStr = cmd;
std::set<std::string> bots;
std::unordered_set<std::string> bots;
if (charnameStr == "*" && master)
{
Group* group = master->GetGroup();
@@ -958,7 +958,7 @@ std::vector<std::string> PlayerbotHolder::HandlePlayerbotCommand(char const* arg
}
}
for (std::set<std::string>::iterator i = bots.begin(); i != bots.end(); ++i)
for (auto i = bots.begin(); i != bots.end(); ++i)
{
std::string const bot = *i;