mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-28 07:37:56 +00:00
Move bot_list from std::list to std::unordered_map like other entities
This commit is contained in:
@@ -419,10 +419,13 @@ perl::array Perl_EntityList_GetBotList(EntityList* self) // @categories Script U
|
||||
{
|
||||
perl::array result;
|
||||
auto current_bot_list = self->GetBotList();
|
||||
for (Bot* bot_iterator : current_bot_list)
|
||||
{
|
||||
result.push_back(bot_iterator);
|
||||
auto it = current_bot_list.begin();
|
||||
|
||||
while (it != current_bot_list.end()) {
|
||||
result.push_back(it->second);
|
||||
++it;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user