summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-19 20:51:36 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-19 20:51:36 +0200
commitd363a20720f653ad4d304bd21e9b4488117e5456 (patch)
tree5548aa1f0da7e41fe16ae89a02cb77d4710959c9 /core
parente663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b (diff)
downloadRustAndDust-d363a20720f653ad4d304bd21e9b4488117e5456.zip
RustAndDust-d363a20720f653ad4d304bd21e9b4488117e5456.tar.gz
NewGameMenu: fix width calculation
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/menu/NewGameMenu.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java b/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
index 4ce9f69..a7002fb 100644
--- a/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
@@ -45,7 +45,7 @@ public class NewGameMenu extends Patch implements MenuCtrl.Panel
if (game.config.battle == null)
game.config.battle = game.factory.battles[0];
for (int i = 0; i < game.factory.battles.length; i++) {
- battleValue.write(game.config.battle.getName());
+ battleValue.write(game.factory.battles[i].getName());
if (battleWidth < battleValue.getWidth())
battleWidth = battleValue.getWidth();
if (game.config.battle == game.factory.battles[i])