mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-12-01 13:34:46 +00:00
fix(class): private access in method calls
Maybe there's better ways, but if it works..?
This commit is contained in:
1 parent
75b7c2a724
commit
dcdfe6e442
1 file changed
+1
-1
@@ -85,7 +85,7 @@ function mixins.new(class, ...)
|
|||||||
__index = function(self, index)
|
__index = function(self, index)
|
||||||
local di = getinfo(2, 'n')
|
local di = getinfo(2, 'n')
|
||||||
|
|
||||||
if di.namewhat ~= 'method' then return end
|
if di.namewhat == 'local' then return end
|
||||||
|
|
||||||
return private[index]
|
return private[index]
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in new issue
Block a user