fixed an overflow issue in GetBuyableStars

This commit is contained in:
Ellpeck 2020-07-03 16:04:52 +02:00
parent c8989f245e
commit 2aaba8f473

View file

@ -126,7 +126,7 @@ namespace TouchyTickets {
#if DEBUG
return 3;
#endif
return Math.Min(3, (int) (this.Tickets / this.GetStarPrice()));
return (int) BigInteger.Min(3, this.Tickets / this.GetStarPrice());
}
}