From 796ff5b3614a5963aab9f4e2531fcd61f485c366 Mon Sep 17 00:00:00 2001 From: hiker Date: Sat, 6 Oct 2018 12:26:55 +1000 Subject: [PATCH] Fixed item collection in networking. --- src/items/item_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/items/item_manager.cpp b/src/items/item_manager.cpp index 157668fcd..7ea487246 100644 --- a/src/items/item_manager.cpp +++ b/src/items/item_manager.cpp @@ -536,8 +536,8 @@ void ItemManager::switchItems() */ void ItemManager::switchItemsInternal(std::vector &all_items) { - for(AllItemTypes::iterator i = m_all_items.begin(); - i != m_all_items.end(); i++) + for(AllItemTypes::iterator i = all_items.begin(); + i != all_items.end(); i++) { if(!*i) continue; @@ -559,7 +559,7 @@ void ItemManager::switchItemsInternal(std::vector &all_items) m_item_lowres_mesh[(int)new_type]); else (*i)->switchBack(); - } // for m_all_items + } // for all_items // if the items are already switched (m_switch_ticks >=0) // then switch back, and set m_switch_ticks to -1 to indicate