diff --git a/Project-Unite/Controllers/StatsController.cs b/Project-Unite/Controllers/StatsController.cs index 1fbf851..fbfaf17 100644 --- a/Project-Unite/Controllers/StatsController.cs +++ b/Project-Unite/Controllers/StatsController.cs @@ -28,7 +28,7 @@ public ActionResult Pong(int id = 1) id = id - 1; int pagecount = highscores.GetPageCount(10); - if (id > pagecount || id < 1) + if (id > pagecount || id < 0) return new HttpStatusCodeResult(HttpStatusCode.BadRequest); var pages = highscores.OrderByDescending(x=>x.Level).ToArray().GetItemsOnPage(id, 10);