Skip to content

Commit 07e7bba

Browse files
committed
Changed virtual_function to use a function cache that already exists.
1 parent 3d5311d commit 07e7bba

File tree

1 file changed

+5
-0
lines changed
  • addons/source-python/packages/source-python/memory

1 file changed

+5
-0
lines changed

Diff for: addons/source-python/packages/source-python/memory/manager.py

+5
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,11 @@ def fget(ptr):
637637
args,
638638
return_type
639639
)
640+
for func_cache in funcs.values():
641+
if func_cache == func:
642+
func = func_cache
643+
break
644+
640645
funcs[address] = func
641646

642647
# Wrap it using MemberFunction, so we don't have to pass the this

0 commit comments

Comments
 (0)