From c35f861d97aa31b1cbf4e4d9004a03c692d00b62 Mon Sep 17 00:00:00 2001 From: Exynox Date: Mon, 1 May 2023 11:02:00 +0300 Subject: [PATCH] Fixed variable redeclaration in table reader --- game/src/item_manager_read_tables.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/src/item_manager_read_tables.cpp b/game/src/item_manager_read_tables.cpp index fe95d7e..3bb2ff8 100644 --- a/game/src/item_manager_read_tables.cpp +++ b/game/src/item_manager_read_tables.cpp @@ -626,7 +626,7 @@ bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char * c_pszFileName) { CDropItemGroup* pkGroup; bool bNew = true; - itertype(m_map_pkDropItemGroup) it = m_map_pkDropItemGroup.find (iMobVnum); + auto it = m_map_pkDropItemGroup.find(iMobVnum); if (it == m_map_pkDropItemGroup.end()) { pkGroup = M2_NEW CDropItemGroup(0, iMobVnum, stName); @@ -634,7 +634,7 @@ bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char * c_pszFileName) else { bNew = false; - CDropItemGroup* pkGroup = it->second; + pkGroup = it->second; } for (int k = 1; k < 256; ++k)