From d73140c24cf547558d1b6ff79b8bf180df59b9b3 Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Mon, 28 Oct 2024 15:59:45 +0800 Subject: [PATCH] fix(containers): fix TArray move constructor not setting rvalue to empty --- Redcraft.Utility/Source/Public/Containers/Array.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Redcraft.Utility/Source/Public/Containers/Array.h b/Redcraft.Utility/Source/Public/Containers/Array.h index ec36cf7..a70b256 100644 --- a/Redcraft.Utility/Source/Public/Containers/Array.h +++ b/Redcraft.Utility/Source/Public/Containers/Array.h @@ -132,6 +132,8 @@ public: Memory::MoveConstruct(Impl.Pointer, InValue.Impl.Pointer, Num()); } + + InValue.Reset(); } /** Constructs the container with the contents of the initializer list. */