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:
parent
022dacc8eb
commit
718c693f73
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue