mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 20:22:23 -04:00
Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion
This commit is contained in:
@@ -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