Skip to content

Commit 173e338

Browse files
committed
Fix edgecase
1 parent 963e8ea commit 173e338

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/autorun/tinylua.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ function META:__index(index)
9393

9494
if isfunction(target) then
9595
results[source] = function(fArg, ...)
96-
return fArg == self and target(ent, ...) or target(fArg, ...)
96+
if fArg == self then
97+
return target(ent, ...)
98+
else
99+
return target(fArg, ...)
100+
end
97101
end
98102
else
99103
results[source] = target

0 commit comments

Comments
 (0)