From d363a20720f653ad4d304bd21e9b4488117e5456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 19 May 2016 20:51:36 +0200 Subject: NewGameMenu: fix width calculation --- core/src/ch/asynk/rustanddust/menu/NewGameMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- cgit v1.1-2-g2b99