diff --git a/addons/source-python/packages/source-python/memory/helpers.py b/addons/source-python/packages/source-python/memory/helpers.py old mode 100644 new mode 100755 index 4f7ec86c4..b0f840f7a --- a/addons/source-python/packages/source-python/memory/helpers.py +++ b/addons/source-python/packages/source-python/memory/helpers.py @@ -161,7 +161,10 @@ def as_str(manager, value): @staticmethod def as_int(manager, value): """Convert the value to an integer.""" - return int(value) + try: + return int(value) + except ValueError: + return int(value, 16) # =============================================================================