aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-04-29 23:17:20 +0200
committerShauren <shauren.trinity@gmail.com>2011-04-29 23:17:20 +0200
commitd9ac745be9d098065fd0b20d35530037901f966a (patch)
treeb568573ef0dee691702cca53586feeba0b97ec61 /src
parent34347a45094b2be2802ba171c6121c64cbc680c1 (diff)
Core/ObjectMgr: Corrected item loading
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Globals/ObjectMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 6222a79e2dc..72c6423388f 100755
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -2368,7 +2368,7 @@ void ObjectMgr::LoadItemTemplates()
{
itemTemplate.Spells[i].SpellId = fields[66 + i*7 ].GetInt32();
itemTemplate.Spells[i].SpellTrigger = uint32(fields[67 + i*7].GetUInt8());
- itemTemplate.Spells[i].SpellCharges = uint32(fields[68 + i*7].GetInt16());
+ itemTemplate.Spells[i].SpellCharges = int32(fields[68 + i*7].GetInt16());
itemTemplate.Spells[i].SpellPPMRate = fields[69 + i*7].GetFloat();
itemTemplate.Spells[i].SpellCooldown = fields[70 + i*7].GetInt32();
itemTemplate.Spells[i].SpellCategory = uint32(fields[71 + i*7].GetUInt16());
@@ -2382,10 +2382,10 @@ void ObjectMgr::LoadItemTemplates()
itemTemplate.PageMaterial = uint32(fields[105].GetUInt8());
itemTemplate.StartQuest = fields[106].GetUInt32();
itemTemplate.LockID = fields[107].GetUInt32();
- itemTemplate.Material = uint32(fields[108].GetInt8());
+ itemTemplate.Material = int32(fields[108].GetInt8());
itemTemplate.Sheath = uint32(fields[109].GetUInt8());
itemTemplate.RandomProperty = fields[110].GetUInt32();
- itemTemplate.RandomSuffix = fields[111].GetUInt32();
+ itemTemplate.RandomSuffix = fields[111].GetInt32();
itemTemplate.Block = fields[112].GetUInt32();
itemTemplate.ItemSet = fields[113].GetUInt32();
itemTemplate.MaxDurability = uint32(fields[114].GetUInt16());