forked from metin2/server
1
0
Fork 0

Fixed variable redeclaration in table reader

This commit is contained in:
Exynox 2023-05-01 11:02:00 +03:00
parent 19cc2f3e34
commit c35f861d97
1 changed files with 2 additions and 2 deletions

View File

@ -626,7 +626,7 @@ bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char * c_pszFileName)
{ {
CDropItemGroup* pkGroup; CDropItemGroup* pkGroup;
bool bNew = true; 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()) if (it == m_map_pkDropItemGroup.end())
{ {
pkGroup = M2_NEW CDropItemGroup(0, iMobVnum, stName); pkGroup = M2_NEW CDropItemGroup(0, iMobVnum, stName);
@ -634,7 +634,7 @@ bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char * c_pszFileName)
else else
{ {
bNew = false; bNew = false;
CDropItemGroup* pkGroup = it->second; pkGroup = it->second;
} }
for (int k = 1; k < 256; ++k) for (int k = 1; k < 256; ++k)