mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Fix error in stat weight check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user