summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/menu/ScenariosMenu.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/menu/ScenariosMenu.java b/core/src/ch/asynk/tankontank/menu/ScenariosMenu.java
index d701a50..40ec133 100644
--- a/core/src/ch/asynk/tankontank/menu/ScenariosMenu.java
+++ b/core/src/ch/asynk/tankontank/menu/ScenariosMenu.java
@@ -88,7 +88,10 @@ public class ScenariosMenu extends Patch
} else {
for (int i = 0; i <battleLabels.length; i++) {
if (battleLabels[i].hit(x, y)) {
- game.config.battle = game.factory.battles[i];
+ if (game.config.battle == game.factory.battles[i])
+ game.config.battle = null;
+ else
+ game.config.battle = game.factory.battles[i];
}
}
}