forked from metin2/server
Fixed variable redeclaration in table reader
This commit is contained in:
parent
19cc2f3e34
commit
c35f861d97
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user