From 18a5fc332195f01aa42b114affb3f18a80ffd04a Mon Sep 17 00:00:00 2001 From: Tissevert Date: Tue, 4 Feb 2020 13:23:12 +0100 Subject: [PATCH] Fixed variables forgotten by renaming --- js/Games.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Games.js b/js/Games.js index 369cd19..91e1cdf 100644 --- a/js/Games.js +++ b/js/Games.js @@ -65,7 +65,7 @@ function isAgainst(state, playerID) { function compare(gameCoordinatesA, gameCoordinatesB) { var monthIndexA = Flower[gameCoordinatesA.month]; var monthIndexB = Flower[gameCoordinatesB.month]; - if(monthNumberA < monthNumberB) { + if(monthIndexA < monthIndexB) { return -1; } else if(monthIndexA > monthIndexB) { return 1;