mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Performance optim
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user