aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-12-26 21:21:28 +0100
committerShauren <shauren.trinity@gmail.com>2016-12-26 21:21:28 +0100
commit87427321497aad5ba3c6dbc1b7f4838f255e052b (patch)
treea3bbb5512bb04d957448fa7686dd27a998b94568 /src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
parent9f81cf445ff47507a9469d57808df231460793f1 (diff)
Core/Items: Implemented bonus list as a possible result of RandomSuffix
Ref #18423
Diffstat (limited to 'src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp')
-rw-r--r--src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
index 145b0709592..83d53144a7e 100644
--- a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
+++ b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
@@ -987,8 +987,7 @@ void AuctionBotSeller::AddNewAuctions(SellerConfiguration& config)
// Update the just created item so that if it needs random properties it has them.
// Ex: Notched Shortsword of Stamina will only generate as a Notched Shortsword without this.
- if (int32 randomPropertyId = Item::GenerateItemRandomPropertyId(itemId))
- item->SetItemRandomProperties(randomPropertyId);
+ item->SetItemRandomProperties(Item::GenerateItemRandomPropertyId(itemId));
uint32 buyoutPrice;
uint32 bidPrice = 0;