]> www.infradead.org Git - users/mchehab/andors-trail.git/commitdiff
Bugfix: Populate the combat view correctly when loading games where the player has...
authorOskar Wiksten <oskar.wiksten@gmail.com>
Mon, 11 Jun 2012 18:02:47 +0000 (20:02 +0200)
committerOskar Wiksten <oskar.wiksten@gmail.com>
Mon, 11 Jun 2012 18:02:47 +0000 (20:02 +0200)
AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CombatView.java

index b940ff6e4c02dbadebd680fc77c181f5634cd4fb..8af46184dc3a57eda16fab30dac067026508f440 100644 (file)
@@ -110,7 +110,7 @@ public final class CombatView extends RelativeLayout {
                statusTextView.setText(res.getString(R.string.combat_status_ap, range.current));
        }
        public void updateCombatSelection(Monster selectedMonster, Coord selectedMovePosition) {
-               if (currentMonster == selectedMonster) return;
+               if (currentMonster != null && currentMonster == selectedMonster) return;
                
                attackMoveButton.setEnabled(true);
                monsterBar.setVisibility(View.INVISIBLE);