]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/AttackTypeMenu.cpp
fixed a bug in BattleState::PreviousHero()
[l2e.git] / src / battle / AttackTypeMenu.cpp
index bee794f453a813e53355816a3c0ffa6d33cd36a0..2ec7a1f129b26bbe25eadf47232d014023fc8cdd 100644 (file)
@@ -23,11 +23,11 @@ void AttackTypeMenu::Render(SDL_Surface *screen, const geometry::Point<int> &pos
        Vector<int> ikariOffset(IconWidth(), 2 * IconHeight());
        Vector<int> itemOffset(0, IconHeight());
 
-       icons->Draw(screen, position + swordOffset, SWORD, (selected == SWORD) ? 1 : 0);
-       icons->Draw(screen, position + magicOffset, MAGIC, (selected == MAGIC) ? 1 : 0);
-       icons->Draw(screen, position + defendOffset, DEFEND, (selected == DEFEND) ? 1 : 0);
-       icons->Draw(screen, position + ikariOffset, IKARI, (selected == IKARI) ? 1 : 0);
-       icons->Draw(screen, position + itemOffset, ITEM, (selected == ITEM) ? 1 : 0);
+       icons->Draw(screen, position + swordOffset, AttackChoice::SWORD, (selected == AttackChoice::SWORD) ? 1 : 0);
+       icons->Draw(screen, position + magicOffset, AttackChoice::MAGIC, (selected == AttackChoice::MAGIC) ? 1 : 0);
+       icons->Draw(screen, position + defendOffset, AttackChoice::DEFEND, (selected == AttackChoice::DEFEND) ? 1 : 0);
+       icons->Draw(screen, position + ikariOffset, AttackChoice::IKARI, (selected == AttackChoice::IKARI) ? 1 : 0);
+       icons->Draw(screen, position + itemOffset, AttackChoice::ITEM, (selected == AttackChoice::ITEM) ? 1 : 0);
 }
 
 }