diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-19 20:51:36 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-19 20:51:36 +0200 |
commit | d363a20720f653ad4d304bd21e9b4488117e5456 (patch) | |
tree | 5548aa1f0da7e41fe16ae89a02cb77d4710959c9 | |
parent | e663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b (diff) | |
download | RustAndDust-d363a20720f653ad4d304bd21e9b4488117e5456.zip RustAndDust-d363a20720f653ad4d304bd21e9b4488117e5456.tar.gz |
NewGameMenu: fix width calculation
-rw-r--r-- | core/src/ch/asynk/rustanddust/menu/NewGameMenu.java | 2 |
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]) |