eluna-scripts-ornfelt/lua/WowEmulationScriptPack/C++/Stats32k+/patch.patch
2024-09-23 07:59:23 +02:00

13 lines
703 B
Diff

diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 04f3395..322858f 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -2273,7 +2273,7 @@ void ObjectMgr::LoadItemTemplates()
for (uint8 i = 0; i < itemTemplate.StatsCount; ++i)
{
itemTemplate.ItemStat[i].ItemStatType = uint32(fields[28 + i*2].GetUInt8());
- itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt16());
+ itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt32());
}
itemTemplate.ScalingStatDistribution = uint32(fields[48].GetUInt16());