summaryrefslogtreecommitdiffstats
path: root/acf/object.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/object.lua')
-rw-r--r--acf/object.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/acf/object.lua b/acf/object.lua
index cbccf70..670a8bb 100644
--- a/acf/object.lua
+++ b/acf/object.lua
@@ -12,7 +12,7 @@ function class(base)
__call=function(self, ...)
local obj = {}
setmetatable(obj, {__index=cls, class=cls})
- obj:init(unpack(arg))
+ obj:init(...)
return obj
end
}
@@ -41,6 +41,7 @@ function super(obj, cls)
local v = cls._base[k]
if type(v) ~= 'function' then return v end
return function(...)
+ local arg = {...}
arg[1] = obj
return v(unpack(arg))
end