diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-04-09 15:31:33 -0600 |
---|---|---|
committer | LNJ <git@lnj.li> | 2017-04-10 13:30:10 +0200 |
commit | 8009743d8d47223292937142e94bc6ba5ecb73fb (patch) | |
tree | 98999ee5ca055a88d0b893dec35c0e83787f8c7a /lua/visual.lua | |
parent | 69cad92b3e4406b278c17c0c8cd3f705963baa9b (diff) |
Fix "uninitialized global variable" warnings
Diffstat (limited to 'lua/visual.lua')
-rwxr-xr-x | lua/visual.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/visual.lua b/lua/visual.lua index 43eb81f..aee4a3b 100755 --- a/lua/visual.lua +++ b/lua/visual.lua @@ -51,7 +51,7 @@ core.register_entity("drawers:visual", { on_activate = function(self, staticdata, dtime_s) -- Restore data - data = core.deserialize(staticdata) + local data = core.deserialize(staticdata) if data then self.drawer_pos = { x = data.drawer_posx, |