aboutsummaryrefslogtreecommitdiff
path: root/src/game/Item.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-05-04 17:51:11 +0200
committerSpp <none@none>2010-05-04 17:51:11 +0200
commit390f11078f46f05a9b0cd28b09b85d508e6940ec (patch)
tree3f492d758189e330b12bfeefe2bfed234d50949f /src/game/Item.cpp
parent5b4647dcf40d91571d4f1c06d0c9d987724797d6 (diff)
Add support to set RandomProperty / RandomSuffix to -1 in item_template
--HG-- branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r--src/game/Item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp
index 30023f511ab..9927a936bc1 100644
--- a/src/game/Item.cpp
+++ b/src/game/Item.cpp
@@ -554,7 +554,7 @@ int32 Item::GenerateItemRandomPropertyId(uint32 item_id)
// RandomProperty case
if (itemProto->RandomProperty)
{
- int32 randomPropId = GetItemEnchantMod(itemProto->RandomProperty);
+ uint32 randomPropId = GetItemEnchantMod(itemProto->RandomProperty);
ItemRandomPropertiesEntry const *random_id = sItemRandomPropertiesStore.LookupEntry(randomPropId);
if (!random_id)
{