*Use uint64 instead of uint32 in AHbot prizes calculation to prevent overflow - by MaXIMUS.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-04 15:15:02 +02:00
parent 35cf6778de
commit 1d7375c545
+2 -2
View File
@@ -357,8 +357,8 @@ static void addNewAuctions(Player *AHBplayer, AHBConfig *config)
if (randomPropertyId != 0) if (randomPropertyId != 0)
item->SetItemRandomProperties(randomPropertyId); item->SetItemRandomProperties(randomPropertyId);
uint32 buyoutPrice; uint64 buyoutPrice;
uint32 bidPrice = 0; uint64 bidPrice = 0;
uint32 stackCount = urand(1, item->GetMaxStackCount()); uint32 stackCount = urand(1, item->GetMaxStackCount());
switch (SellMethod) switch (SellMethod)