Fix to the makesingleton function.

This commit is contained in:
BenDol
2014-04-01 17:22:00 +13:00
parent 994f49b3c1
commit 4b24c78f0f
2 changed files with 3 additions and 47 deletions

View File

@@ -337,7 +337,7 @@ function makesingleton(obj)
if obj.getClassName then
for key,value in pairs(_G[obj:getClassName()]) do
if type(value) == 'function' then
singleton[key] = function(...) value(obj, ...) end
singleton[key] = function(...) return value(obj, ...) end
end
end
end