diff --git a/modules/juce_core/containers/juce_HashMap.h b/modules/juce_core/containers/juce_HashMap.h index ab018ca578..07d02b401f 100644 --- a/modules/juce_core/containers/juce_HashMap.h +++ b/modules/juce_core/containers/juce_HashMap.h @@ -324,7 +324,7 @@ public: const ScopedLockType lock1 (getLock()); const typename OtherHashMapType::ScopedLockType lock2 (otherHashMap.getLock()); - hashSlots.swapWith (otherHashMap.slots); + hashSlots.swapWith (otherHashMap.hashSlots); std::swap (totalNumItems, otherHashMap.totalNumItems); } @@ -400,7 +400,7 @@ public: if (index >= hashMap.getNumSlots()) return false; - entry = hashMap.slots.getUnchecked (index++); + entry = hashMap.hashSlots.getUnchecked (index++); } return true;