This commit is contained in:
Bluzume 2021-11-09 22:03:57 -05:00
parent fdc02d5952
commit 395d86143d

View file

@ -2577,13 +2577,12 @@ namespace HISP.Server
}
catch (Exception)
{
goto tooHigh;
newSellPrice = 2147483647; // too high
}
if(newSellPrice > 500000000)
if(newSellPrice > 500000000 || newSellPrice < 0)
{
tooHigh:;
priceTooHigh = PacketBuilder.CreateChat(Messages.HorseAutoSellValueTooHigh, PacketBuilder.CHAT_BOTTOM_RIGHT);
byte[] priceTooHigh = PacketBuilder.CreateChat(Messages.HorseAutoSellValueTooHigh, PacketBuilder.CHAT_BOTTOM_RIGHT);
sender.SendPacket(priceTooHigh);
break;
}