Core/Items: fixed a typo in generating item stats from random properties

This commit is contained in:
Ovahlord committed 2020-02-23 10:54:38 +01:00
1 parent 536b00fb63
commit d01d7152a6
1 file changed
+2 -2
@@ -137,9 +137,9 @@ int32 GenerateItemRandomPropertyId(uint32 item_id)
}
// RandomProperty case
if (itemProto->GetRandomSuffix())
if (itemProto->GetRandomProperty())
{
uint32 randomPropId = GetItemEnchantMod(itemProto->GetRandomSuffix());
uint32 randomPropId = GetItemEnchantMod(itemProto->GetRandomProperty());
ItemRandomPropertiesEntry const* random_id = sItemRandomPropertiesStore.LookupEntry(randomPropId);
if (!random_id)
{