Core/AuctionHouse: Fix compile (Part 2)

This commit is contained in:
Aokromes
2016-03-22 09:53:04 +01:00
parent a82e9fe4d3
commit b9e090a4ae

View File

@@ -739,7 +739,7 @@ void AuctionBotSeller::SetPricesOfItem(ItemTemplate const* itemProto, SellerConf
// Determines the stack size to use for the item
uint32 AuctionBotSeller::GetStackSizeForItem(ItemTemplate const* itemProto, SellerConfiguration& config) const
{
if (config.GetRandomStackRatioPerClass(ItemClass(itemProto->Class)) > urand(0, 99))
if (config.GetRandomStackRatioPerClass(ItemClass(itemProto->GetClass)) > urand(0, 99))
return urand(1, itemProto->GetMaxStackSize());
else
return 1;