]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.cpp
turned battle's menu vectors into arrays
[l2e.git] / src / battle / BattleState.cpp
index b5c91f8ca6b03587bf9605111ed0e6814097e1c9..9e84206b3908dde82be2eba8fec5da82bf4e8661 100644 (file)
@@ -64,9 +64,9 @@ void BattleState::EnterState(Application &ctrl, SDL_Surface *screen) {
        monstersLayout->CalculatePositions(background->w, background->h, monsterPositions);
        heroesLayout->CalculatePositions(background->w, background->h, heroesPositions);
        for (vector<Hero>::size_type i(0), end(heroes.size()); i < end; ++i) {
-               spellMenus.push_back(res->spellMenuPrototype);
+               spellMenus[i] = res->spellMenuPrototype;
                LoadSpellMenu(i);
-               ikariMenus.push_back(res->ikariMenuPrototype);
+               ikariMenus[i] = res->ikariMenuPrototype;
                LoadIkariMenu(i);
                heroTags[i] = HeroTag(this, i);
        }