1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-05 13:15:03 +02:00

fix local variable shadowing

This commit is contained in:
Gerkiz 2021-05-18 21:13:08 +02:00
parent 89223f5dbd
commit 376c101484

View File

@ -1289,9 +1289,9 @@ function Public.reset_game()
end
end
local players = game.players
for i = 1, #players do
local player = players[i]
local offline_players = game.players
for i = 1, #offline_players do
local player = offline_players[i]
Session.clear_player(player)
end