From e02b9a9b82682c2e7bc7b0e84034fff8d101a961 Mon Sep 17 00:00:00 2001 From: Jonathan <30329245+CookStar@users.noreply.github.com> Date: Sun, 31 Jan 2021 16:19:06 +0900 Subject: [PATCH] Fixed the problem with the class being set to 'NoneType' when using custom_calling_convention. --- addons/source-python/packages/source-python/memory/manager.py | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 addons/source-python/packages/source-python/memory/manager.py diff --git a/addons/source-python/packages/source-python/memory/manager.py b/addons/source-python/packages/source-python/memory/manager.py old mode 100644 new mode 100755 index 8d000ecf3..3af95e0fa --- a/addons/source-python/packages/source-python/memory/manager.py +++ b/addons/source-python/packages/source-python/memory/manager.py @@ -204,6 +204,7 @@ class MyCustomCallingConvention(CallingConvention): MyCustomCallingConvention) """ self.register_convention(cls.__name__, cls) + return cls def register_convention(self, name, convention): """Register a custom calling convention.