From 718c693f73bafedfed2ce9f086fb323596516348 Mon Sep 17 00:00:00 2001 From: Rey Date: Wed, 4 May 2022 10:08:20 -0500 Subject: [PATCH] The baseparams weren't being initialized in the actual item code. Now prevents crashing. --- src/world/Inventory/Item.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/world/Inventory/Item.cpp b/src/world/Inventory/Item.cpp index 6e7d0aec..9aba8a0a 100644 --- a/src/world/Inventory/Item.cpp +++ b/src/world/Inventory/Item.cpp @@ -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