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) catch (Exception)
{ {
goto tooHigh; newSellPrice = 2147483647; // too high
} }
if(newSellPrice > 500000000) if(newSellPrice > 500000000 || newSellPrice < 0)
{ {
tooHigh:; byte[] priceTooHigh = PacketBuilder.CreateChat(Messages.HorseAutoSellValueTooHigh, PacketBuilder.CHAT_BOTTOM_RIGHT);
priceTooHigh = PacketBuilder.CreateChat(Messages.HorseAutoSellValueTooHigh, PacketBuilder.CHAT_BOTTOM_RIGHT);
sender.SendPacket(priceTooHigh); sender.SendPacket(priceTooHigh);
break; break;
} }