Updated endGame method

This commit is contained in:
2025-07-06 00:43:32 +02:00
parent 554f6e243c
commit 32aa2e6070
2 changed files with 1 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ class GameManager extends ChangeNotifier {
gameList.indexWhere((session) => session.id.toString() == id);
// Game session not found or not in unlimited mode
if (index == -1 || gameList[index].isPointsLimitEnabled == false) return;
if (index == -1 || gameList[index].isPointsLimitEnabled == true) return;
gameList[index].roundNumber--;
gameList[index].isGameFinished = true;