Skip to content

Commit

Permalink
lua/LItem: self safeguard
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Berbizier (dbdl) committed Jan 18, 2014
1 parent dce761a commit 8d5eaa9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/lua/LItem.lua
Expand Up @@ -36,6 +36,7 @@ local mt = {}
mt.__index = mt
local xmeta = setmetatable( {}, {
__call = function(self,debug,...)
local self = self or {}
luce = require( debug and "luce_debug" or "luce" )
return setmetatable({}, {
__call = new,
Expand All @@ -45,4 +46,4 @@ local xmeta = setmetatable( {}, {
})
module(...)
return xmeta
return xmeta

0 comments on commit 8d5eaa9

Please sign in to comment.