diff --git a/addons/source-python/packages/source-python/entities/classes.py b/addons/source-python/packages/source-python/entities/classes.py old mode 100644 new mode 100755 index 9ee55c82e..4a4e93178 --- a/addons/source-python/packages/source-python/entities/classes.py +++ b/addons/source-python/packages/source-python/entities/classes.py @@ -232,7 +232,7 @@ def _get_server_class(self, class_name, datamap): manager_contents['binary'] = 'server' # Get a TypeManager instance for the current datamap - instance = self.create_type_from_file(class_name, manager_contents) + instance = self.create_type_from_dict(class_name, manager_contents) # Get the specific types of values to use input_contents = dict(map( diff --git a/addons/source-python/packages/source-python/memory/manager.py b/addons/source-python/packages/source-python/memory/manager.py index 3af95e0fa..f2076559a 100755 --- a/addons/source-python/packages/source-python/memory/manager.py +++ b/addons/source-python/packages/source-python/memory/manager.py @@ -497,7 +497,8 @@ def fset(ptr, value): """Set the pointer attribute value.""" # Handle custom type if not native_type: - ptr.set_pointer(value) + # Set the pointer + ptr.set_pointer(value, offset) # Make sure the value will not deallocate as long as it is # part of this object