From 8cc53dc2eac215813572b7a3c0df5dd827814072 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Mon, 22 Jul 2024 12:38:51 +0200 Subject: [PATCH] Fix handling of BIP game in tables renumbering --- .../main/kotlin/org/jeudego/pairgoth/model/Tournament.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/model/Tournament.kt b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/model/Tournament.kt index 04551ec..f1b0c5e 100644 --- a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/model/Tournament.kt +++ b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/model/Tournament.kt @@ -132,8 +132,10 @@ sealed class Tournament ( if (pivot != null && nextTable == pivot.table) { ++nextTable } - changed = changed || game.table != nextTable - game.table = nextTable++ + if (game.table != 0) { + changed = changed || game.table != nextTable + game.table = nextTable++ + } } return changed }