Move bot_list from std::list to std::unordered_map like other entities

This commit is contained in:
nytmyr
2024-12-23 20:50:36 -06:00
parent c7741efbe5
commit ef983c3d47
53 changed files with 266 additions and 275 deletions
+6 -3
View File
@@ -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;
}