Fix Lua global leaks

Fix unintended leaked globals in the clusterio and player_auth modules.
This commit is contained in:
Hornwitser committed 2021-09-11 01:02:24 +02:00
1 parent 90dacd98b2
commit efc71580ea
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
local clusterio_api = require("modules/clusterio/api")
local auth = {}
function open_dialog(player, url, code)
local function open_dialog(player, url, code)
if player.gui.screen.player_auth_dialog then
player.gui.screen.player_auth_dialog.destroy()
end