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);
}