From 40652a0ebc42ca7c985048ea21fb4b669a999e6e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 8 May 2024 17:28:14 +0200 Subject: [PATCH] Fix `HashSet` adding item via move operation --- Source/Engine/Core/Collections/HashSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Core/Collections/HashSet.h b/Source/Engine/Core/Collections/HashSet.h index b76244860..12378f2ea 100644 --- a/Source/Engine/Core/Collections/HashSet.h +++ b/Source/Engine/Core/Collections/HashSet.h @@ -58,7 +58,7 @@ public: } template - FORCE_INLINE void Occupy(ItemType& item) + FORCE_INLINE void Occupy(ItemType&& item) { Memory::MoveItems(&Item, &item, 1); _state = Occupied;