Skip to content

Commit

Permalink
Merge pull request #1666 from wiremod/fix/1612
Browse files Browse the repository at this point in the history
Clear E2's strfunc cache when defining a function
  • Loading branch information
bigdogmat authored Jun 6, 2018
2 parents 3434631 + 2496129 commit ea9f63e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/entities/gmod_wire_expression2/core/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ __e2setcost(1)
registerOperator("function", "", "", function(self, args)
local sig, body = args[2], args[3]
self.funcs[sig] = body
self.strfunc_cache = {}
end)

__e2setcost(2)
Expand Down

0 comments on commit ea9f63e

Please sign in to comment.