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