*Use uint64 instead of uint32 in AHbot prizes calculation to prevent overflow - by MaXIMUS.
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user