Skip to content

Commit

Permalink
Copy array for assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Sep 8, 2024
1 parent 8a0aac5 commit f149efd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GuildWarsPartySearch.NodeJSServer/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ function reassign_bot_clients(request) {
})));

// For remaining bots, assign them where you can
bots_to_reassign.forEach((bot_client) => {
const to_reassign_cpy = Array.from(bots_to_reassign);
to_reassign_cpy.forEach((bot_client) => {
check_district_regions.forEach((district_region) => {
for(let map_id = 0; map_id < map_ids.Count;map_id++) {
if(!isValidOutpost(map_id))
Expand Down

0 comments on commit f149efd

Please sign in to comment.