X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.cpp;h=9e84206b3908dde82be2eba8fec5da82bf4e8661;hb=4956380d5109fe57722a968ad1ffbf2fa0a5ed2e;hp=b5c91f8ca6b03587bf9605111ed0e6814097e1c9;hpb=193a20c0318ce8c4bc2551cccc9cce6c33cc3660;p=l2e.git diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index b5c91f8..9e84206 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -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::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); }