Fix error in stat weight check

This commit is contained in:
郑佩茹
2023-03-21 10:39:51 -06:00
parent 7c872915ec
commit e1e74c9c2b

View File

@@ -1925,6 +1925,13 @@ uint32 RandomItemMgr::GetStatWeight(Player* player, uint32 itemId)
if (m_weightScales[player->getClass()][specNum].info.name == specName)
specId = m_weightScales[player->getClass()][specNum].info.id;
if (m_weightScales[player->getClass()][specNum].info.name == specName)
{
specId = specNum;
break;
}
}
if (!specId)