From 2aaba8f4736db560643615f0f77b0590133ae9a6 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 3 Jul 2020 16:04:52 +0200 Subject: [PATCH] fixed an overflow issue in GetBuyableStars --- TouchyTickets/GameImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TouchyTickets/GameImpl.cs b/TouchyTickets/GameImpl.cs index 416ee53..e9dd9ea 100644 --- a/TouchyTickets/GameImpl.cs +++ b/TouchyTickets/GameImpl.cs @@ -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()); } }