mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
lol
This commit is contained in:
parent
fdc02d5952
commit
395d86143d
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue