summaryrefslogtreecommitdiff
path: root/class_layout.lua
diff options
context:
space:
mode:
authorThomas Rudin <thomas@rudin.li>2018-08-28 20:25:13 +0200
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-08-28 20:25:13 +0200
commitd3397563ec29b193aa2bfd720da1a4aba34304d3 (patch)
treeeac18739a4bcc22b014f4bd97f3428a7061b7986 /class_layout.lua
parent0cb8d2dc3333e6e885c0470c3dcfe3d349dadac6 (diff)
Fix undeclared global variable warnings
Closes #26 (trivial)
Diffstat (limited to 'class_layout.lua')
-rw-r--r--class_layout.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/class_layout.lua b/class_layout.lua
index 14c116b..541fd35 100644
--- a/class_layout.lua
+++ b/class_layout.lua
@@ -458,7 +458,7 @@ function DigtronLayout.deserialize(layout_string)
if not layout_string or layout_string == "" then
return nil
end
- deserialized_layout = minetest.deserialize(layout_string)
+ local deserialized_layout = minetest.deserialize(layout_string)
self.all = deserialized_layout.all
self.controller = deserialized_layout.controller