X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=src%2Fbattle%2FBattleState.cpp;h=30a33b691b04fc27382b9f1b29c02e593531d89d;hb=bfcf2f4de43077249b82af03a0e1b8281b8490e3;hp=2c5fe8174449ceb899f2bf7f8f634baff60304ba;hpb=9413020156a8eecdb56879510d1216e894a9331f;p=l2e.git diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index 2c5fe81..30a33b6 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -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::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))); } }