diff options
author | QAston <none@none> | 2009-08-04 15:15:02 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-04 15:15:02 +0200 |
commit | 1d7375c545e881a12d12f633e0387695b327c432 (patch) | |
tree | 5bfd334ab87efd0f7511b70d822b58ad537373f8 /src | |
parent | 35cf6778de1ff4e9c4b38e311bcb1552693c6e2c (diff) |
*Use uint64 instead of uint32 in AHbot prizes calculation to prevent overflow - by MaXIMUS.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/AuctionHouseBot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/AuctionHouseBot.cpp b/src/game/AuctionHouseBot.cpp index c2af4c92c15..2d468a280b8 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) |