mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix error in stat weight check
This commit is contained in:
parent
7c872915ec
commit
e1e74c9c2b
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user