Skip to content

Commit

Permalink
no self
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGoll committed Jan 30, 2025
1 parent 144f7a2 commit 95d18fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/ttt2/libraries/none.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ function AccessorFunc(tableScope, varName, name, forceType, returnSelf)

if forceType == FORCE_BOOL_IS then
tableScope["Is" .. name] = function(slf)
return self[varName]
return slf[varName]
end
elseif forceType == FORCE_BOOL_HAS then
tableScope["Has" .. name] = function(slf)
return self[varName]
return slf[varName]
end
else
tableScope["Get" .. name] = function(slf)
return self[varName]
return slf[varName]
end
end

Expand Down

0 comments on commit 95d18fb

Please sign in to comment.