aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/register.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/game/register.lua b/builtin/game/register.lua
index f286113ec..cb0840241 100644
--- a/builtin/game/register.lua
+++ b/builtin/game/register.lua
@@ -398,7 +398,9 @@ local function make_registration_wrap(reg_fn_name, clear_fn_name)
local orig_clear_fn = core[clear_fn_name]
core[clear_fn_name] = function()
- list = {}
+ for k in pairs(list) do
+ list[k] = nil
+ end
return orig_clear_fn()
end