From 724b9a05454c380ec2f0e06ac5defde1db259be9 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 2 May 2017 16:45:01 -0400 Subject: Oh....duh... --- Project-Unite/Controllers/StatsController.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Project-Unite/Controllers/StatsController.cs') diff --git a/Project-Unite/Controllers/StatsController.cs b/Project-Unite/Controllers/StatsController.cs index 1306f8e..1fbf851 100644 --- a/Project-Unite/Controllers/StatsController.cs +++ b/Project-Unite/Controllers/StatsController.cs @@ -25,6 +25,8 @@ namespace Project_Unite.Controllers }); } + id = id - 1; + int pagecount = highscores.GetPageCount(10); if (id > pagecount || id < 1) return new HttpStatusCodeResult(HttpStatusCode.BadRequest); -- cgit v1.2.3