From: Daniel Karbach Date: Fri, 10 Aug 2012 10:23:51 +0000 (+0200) Subject: fix bug in select attack type state that caused the tag positioning to go nuts X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=26ea92a0e275e32f1fc166cde407a02c3e7e476b;p=l2e.git fix bug in select attack type state that caused the tag positioning to go nuts --- diff --git a/src/battle/states/SelectAttackType.cpp b/src/battle/states/SelectAttackType.cpp index c007320..1039e51 100644 --- a/src/battle/states/SelectAttackType.cpp +++ b/src/battle/states/SelectAttackType.cpp @@ -97,9 +97,10 @@ void SelectAttackType::HandleInput(const Input &input) { } } else if (input.JustPressed(Input::ACTION_B)) { battle->PreviousHero(); - battle->SetAttackType(AttackChoice::UNDECIDED); if (battle->BeforeFirstHero()) { ctrl->ChangeState(new SelectMoveAction(battle)); + } else { + battle->SetAttackType(AttackChoice::UNDECIDED); } }