X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FSmallHeroTag.cpp;h=408be3bdb547794760bd5c322ac207cb1322df8a;hb=acc322b16b5f31cfbc350d4fccb457c7730287fd;hp=1496d47f3c336c836069eb4158f1669f2f714315;hpb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;p=l2e.git diff --git a/src/battle/SmallHeroTag.cpp b/src/battle/SmallHeroTag.cpp index 1496d47..408be3b 100644 --- a/src/battle/SmallHeroTag.cpp +++ b/src/battle/SmallHeroTag.cpp @@ -5,6 +5,7 @@ #include "../graphics/Font.h" #include "../graphics/Frame.h" #include "../graphics/Gauge.h" +#include "../math/Vector.h" using math::Vector; using graphics::Font; @@ -21,7 +22,7 @@ void SmallHeroTag::Render(SDL_Surface *screen, int width, int height, const math frame->Draw(screen, position, width, height); - if (battle->HeroPositionOccupied(index)) { + if (battle->GetBattle().HeroPositionOccupied(index)) { const Hero &hero(battle->HeroAt(index)); int gaugeWidth(width - 2 * frame->BorderWidth() - labels->Width());