mirror of
https://github.com/edubart/otclient.git
synced 2025-12-04 08:56:51 +01:00
Fix to the makesingleton function.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user