From f2fbd4537463838e94089cc7e8ad110f330aab57 Mon Sep 17 00:00:00 2001 From: plague006 Date: Sun, 18 Nov 2018 14:07:03 -0500 Subject: [PATCH] Make local copy of walking_storage --- features/walkabout.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/walkabout.lua b/features/walkabout.lua index 2347d660..fb4bec69 100644 --- a/features/walkabout.lua +++ b/features/walkabout.lua @@ -131,7 +131,8 @@ function clean_on_join(event) local index = player.index if global.walking[index] then global.walking[index] = false - for _, s in pairs (global.walking_storage) do + local walking_storage = global.walking_storage + for _, s in pairs (walking_storage) do if s.index == index then local walkabout_character = player.character