Skip to content

Commit ea9f63e

Browse files
authored
Merge pull request #1666 from wiremod/fix/1612
Clear E2's strfunc cache when defining a function
2 parents 3434631 + 2496129 commit ea9f63e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/entities/gmod_wire_expression2/core/functions.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ __e2setcost(1)
99
registerOperator("function", "", "", function(self, args)
1010
local sig, body = args[2], args[3]
1111
self.funcs[sig] = body
12+
self.strfunc_cache = {}
1213
end)
1314

1415
__e2setcost(2)

0 commit comments

Comments
 (0)