From 1d7375c545e881a12d12f633e0387695b327c432 Mon Sep 17 00:00:00 2001 From: QAston Date: Tue, 4 Aug 2009 15:15:02 +0200 Subject: [PATCH] *Use uint64 instead of uint32 in AHbot prizes calculation to prevent overflow - by MaXIMUS. --HG-- branch : trunk --- src/game/AuctionHouseBot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/AuctionHouseBot.cpp b/src/game/AuctionHouseBot.cpp index c2af4c92c1..2d468a280b 100644 --- a/src/game/AuctionHouseBot.cpp +++ b/src/game/AuctionHouseBot.cpp @@ -357,8 +357,8 @@ static void addNewAuctions(Player *AHBplayer, AHBConfig *config) if (randomPropertyId != 0) item->SetItemRandomProperties(randomPropertyId); - uint32 buyoutPrice; - uint32 bidPrice = 0; + uint64 buyoutPrice; + uint64 bidPrice = 0; uint32 stackCount = urand(1, item->GetMaxStackCount()); switch (SellMethod)