From 38c9573b2388c37b1df7547a836c790d0f16f02c Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 16 Jun 2020 12:16:07 +0200 Subject: BLI: fix Map.foreach_item method --- source/blender/blenlib/BLI_map.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_map.hh') diff --git a/source/blender/blenlib/BLI_map.hh b/source/blender/blenlib/BLI_map.hh index a4c3ee76ca1..ea59579e996 100644 --- a/source/blender/blenlib/BLI_map.hh +++ b/source/blender/blenlib/BLI_map.hh @@ -641,7 +641,7 @@ class Map { */ template void foreach_item(const FuncT &func) const { - uint32_t size = this->size(); + uint32_t size = m_slots.size(); for (uint32_t i = 0; i < size; i++) { const Slot &slot = m_slots[i]; if (slot.is_occupied()) { -- cgit v1.2.3