From b2457b6ee6032037cdfdefa9908650dd0572cc7f Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 30 Mar 2026 19:55:13 +0200 Subject: [PATCH] Fix Variant array element typename --- Source/Engine/Core/Types/Variant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Core/Types/Variant.cpp b/Source/Engine/Core/Types/Variant.cpp index 96db06656..2531665b9 100644 --- a/Source/Engine/Core/Types/Variant.cpp +++ b/Source/Engine/Core/Types/Variant.cpp @@ -125,7 +125,7 @@ VariantType::VariantType(Types type, const StringAnsiView& typeName, bool static VariantType::VariantType(Types type, const ScriptingType& sType) : VariantType(type) { - SetTypeName(sType); + SetTypeName(sType.Fullname, sType.Module->CanReload); } VariantType::VariantType(Types type, const MClass* klass) @@ -172,7 +172,7 @@ VariantType::VariantType(const StringAnsiView& typeName) // Check case for array if (typeName.EndsWith(StringAnsiView("[]"), StringSearchCase::CaseSensitive)) { - new(this) VariantType(Array, StringAnsiView(typeName.Get(), typeName.Length() - 2)); + new(this) VariantType(Array, typeName); return; }