]> git.localhorst.tv Git - l2e.git/commitdiff
fixed attack choice reset bug
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 22 Aug 2012 19:50:25 +0000 (21:50 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 22 Aug 2012 19:50:25 +0000 (21:50 +0200)
did not reset the first hero's attack choice when cancelling the second hero's selection

src/battle/states/SelectAttackType.cpp

index 3157ca7642981a9c822ea2adc0093005684e9f2b..7f366818143ad48c29beeb70ea966b7e85fe085c 100644 (file)
@@ -114,7 +114,7 @@ void SelectAttackType::HandleEvents(const Input &input) {
                if (battle->BeforeFirstHero()) {
                        ctrl->ChangeState(new SelectMoveAction(battle));
                } else {
-                       ac.Reset();
+                       battle->ActiveHero().GetAttackChoice().Reset();
                }
        }