From 8ed2bb41798d3edf68d7612937fc445756627cb0 Mon Sep 17 00:00:00 2001 From: Wojciech Figat Date: Thu, 21 Apr 2022 11:37:50 +0200 Subject: [PATCH] Fix `HashSet::Remove` return value if empty --- 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 eb10a5015..22bdfe65a 100644 --- a/Source/Engine/Core/Collections/HashSet.h +++ b/Source/Engine/Core/Collections/HashSet.h @@ -480,7 +480,7 @@ public: bool Remove(const ItemType& item) { if (IsEmpty()) - return true; + return false; FindPositionResult pos; FindPosition(item, pos); if (pos.ObjectIndex != -1)