Fix HashSet adding item via move operation

This commit is contained in:
Wojtek Figat
2024-05-08 17:28:14 +02:00
parent 481a6de821
commit 40652a0ebc

View File

@@ -58,7 +58,7 @@ public:
} }
template<typename ItemType> template<typename ItemType>
FORCE_INLINE void Occupy(ItemType& item) FORCE_INLINE void Occupy(ItemType&& item)
{ {
Memory::MoveItems(&Item, &item, 1); Memory::MoveItems(&Item, &item, 1);
_state = Occupied; _state = Occupied;