From 40413edbabb80bd85dc2cc5d2647c499f29bf59d Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 13 May 2026 10:43:03 +0200 Subject: [PATCH] Fix property get/set function name length in dotnet bindings --- Source/Engine/Scripting/Runtime/DotNet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Scripting/Runtime/DotNet.cpp b/Source/Engine/Scripting/Runtime/DotNet.cpp index 0c1901e4b..3eea438a0 100644 --- a/Source/Engine/Scripting/Runtime/DotNet.cpp +++ b/Source/Engine/Scripting/Runtime/DotNet.cpp @@ -1636,7 +1636,7 @@ FORCE_INLINE StringAnsiView GetPropertyMethodName(MProperty* property, StringAns Platform::MemoryCopy(mem, prefix.Get(), prefix.Length()); Platform::MemoryCopy(mem + prefix.Length(), name.Get(), name.Length()); mem[name.Length() + prefix.Length()] = 0; - return StringAnsiView(mem, name.Length() + prefix.Length() + 1); + return StringAnsiView(mem, name.Length() + prefix.Length()); } MProperty::MProperty(MClass* parentClass, const char* name, void* handle, void* getterHandle, void* setterHandle, MMethodAttributes getterAttributes, MMethodAttributes setterAttributes)