mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion
This commit is contained in:
@@ -1955,7 +1955,7 @@ ItemModifiedAppearanceEntry const* Item::GetItemModifiedAppearance() const
|
||||
|
||||
uint32 Item::GetModifier(ItemModifier modifier) const
|
||||
{
|
||||
return GetDynamicValues(ITEM_DYNAMIC_FIELD_MODIFIERS)[modifier];
|
||||
return GetDynamicValue(ITEM_DYNAMIC_FIELD_MODIFIERS, modifier);
|
||||
}
|
||||
|
||||
void Item::SetModifier(ItemModifier modifier, uint32 value)
|
||||
|
||||
@@ -1356,7 +1356,8 @@ std::vector<uint32> const& Object::GetDynamicValues(uint16 index) const
|
||||
uint32 Object::GetDynamicValue(uint16 index, uint16 offset) const
|
||||
{
|
||||
ASSERT(index < _dynamicValuesCount || PrintIndexError(index, false));
|
||||
ASSERT(offset < _dynamicValues[index].size());
|
||||
if (offset >= _dynamicValues[index].size())
|
||||
return 0;
|
||||
return _dynamicValues[index][offset];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user