X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FPerformAttacks.cpp;h=5906650e0418a42949ed44bb26ffaf3e697bd821;hb=04b582180c8f86f50f08f5141a2514a1fcda3e01;hp=e5bd7c98207da2c9b5bbc76f2a0713e01eca57b4;hpb=adb1e3d5eafba2ef3de1499be286be330afaefef;p=l2e.git diff --git a/src/battle/states/PerformAttacks.cpp b/src/battle/states/PerformAttacks.cpp index e5bd7c9..5906650 100644 --- a/src/battle/states/PerformAttacks.cpp +++ b/src/battle/states/PerformAttacks.cpp @@ -58,10 +58,10 @@ void PerformAttacks::HandleEvents(const Input &input) { if (titleBarText) { titleBarText = 0; ++cursor; - while (cursor < (int)battle->Monsters().size() && !battle->MonsterPositionOccupied(cursor)) { + while (cursor < battle->MaxMonsters() && !battle->MonsterPositionOccupied(cursor)) { ++cursor; } - if (cursor >= (int)battle->Monsters().size()) { + if (cursor >= battle->MaxMonsters()) { battle->ClearAllAttacks(); ctrl->PopState(); } @@ -113,7 +113,7 @@ void PerformAttacks::Render(SDL_Surface *screen) { battle->RenderBackground(screen, offset); battle->RenderMonsters(screen, offset); battle->RenderHeroes(screen, offset); - // render small tags + battle->RenderSmallHeroTags(screen, offset); RenderTitleBar(screen, offset); }