]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/SmallHeroTag.cpp
extracted battle logic into a class
[l2e.git] / src / battle / SmallHeroTag.cpp
index 1496d47f3c336c836069eb4158f1669f2f714315..408be3bdb547794760bd5c322ac207cb1322df8a 100644 (file)
@@ -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());