X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FHeroTag.cpp;h=228bfda4aef5e654a368c8c1634460f4ca890541;hb=fde7b27297882a7f033641df92e732abd137b532;hp=f6682df4e5da9df1b424d65ceb3ca7ee07d96d71;hpb=8a6225176cd0946363ac2d8219d54a13009de675;p=l2e.git diff --git a/src/battle/HeroTag.cpp b/src/battle/HeroTag.cpp index f6682df..228bfda 100644 --- a/src/battle/HeroTag.cpp +++ b/src/battle/HeroTag.cpp @@ -87,9 +87,9 @@ void HeroTag::Render(SDL_Surface *screen, int width, int height, Point posi r.normalFont->DrawString(hero.Name(), screen, position + frameOffset + alignOffset, 5); // attack icon - if (battle->AttackChoiceAt(index).GetType() != AttackChoice::UNDECIDED) { + if (battle->HeroAt(index).GetAttackChoice().GetType() != AttackChoice::UNDECIDED) { Vector attackIconOffset(labelX + r.heroTagLabels->Width(), frameOffset.Y() + 3 * r.heroTagFont->CharHeight()); - r.attackChoiceIcons->Draw(screen, position + attackIconOffset, 0, battle->AttackChoiceAt(index).GetType()); + r.attackChoiceIcons->Draw(screen, position + attackIconOffset, 0, battle->HeroAt(index).GetAttackChoice().GetType()); } // hero