1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-24 18:47:45 +00:00

The baseparams weren't being initialized in the actual item code. Now

prevents crashing.
This commit is contained in:
Rey 2022-05-04 10:08:20 -05:00
parent 022dacc8eb
commit 718c693f73

View file

@ -33,6 +33,12 @@ Sapphire::Item::Item( uint64_t uId, uint32_t catalogId, bool isHq ) :
m_defense = itemInfo->defensePhys;
m_defenseMag = itemInfo->defenseMag;
for (int i = 0; i < 6; ++i)
{
m_baseParam[i].baseParam = itemInfo->param[i].baseparam;
m_baseParam[i].value = itemInfo->param[i].value;
}
}
uint16_t Sapphire::Item::getDefense() const