]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.cpp
added some test sprites
[l2e.git] / src / battle / BattleState.cpp
index 2c5fe8174449ceb899f2bf7f8f634baff60304ba..30a33b691b04fc27382b9f1b29c02e593531d89d 100644 (file)
@@ -48,8 +48,9 @@ void BattleState::Resize(int w, int h) {
 void BattleState::EnterState(Application &ctrl, SDL_Surface *screen) {
        monstersLayout->CalculatePositions(background->w, background->h, monsterPositions);
        heroesLayout->CalculatePositions(background->w, background->h, heroesPositions);
+       attackChoices.resize(heroes.size());
        for (vector<Hero>::size_type i(0), end(heroes.size()); i < end; ++i) {
-               heroTags.push_back(HeroTag(&heroes[i], HeroTag::Alignment((i + 1) % 2)));
+               heroTags.push_back(HeroTag(&heroes[i], &attackChoices[i], HeroTag::Alignment((i + 1) % 2)));
        }
 }