From bd1a6a44dbbbde5c53b5d23e7e488f14aa27c6d3 Mon Sep 17 00:00:00 2001 From: IlushaShurupov Date: Thu, 20 Jul 2023 22:31:36 +0300 Subject: [PATCH] Fixed bug in map --- Containers/public/Map.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/public/Map.hpp b/Containers/public/Map.hpp index ae91a37..cac899e 100644 --- a/Containers/public/Map.hpp +++ b/Containers/public/Map.hpp @@ -247,7 +247,7 @@ namespace tp { const tVal& getSlotVal(Idx slot) const { DEBUG_ASSERT(slot.idx < mNSlots && (mTable[slot.idx] && !isDeletedNode(mTable[slot.idx])) && "Key Error") - return mTable[slot]->val; + return mTable[slot.idx]->val; } tVal& getSlotVal(Idx slot) {