X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FTargetSelection.cpp;h=c1aedf3ca7d8a253b05b368812801a8b3ce6cf67;hb=aedc31b88715246abc00a0ab333bea6e17bbb780;hp=c5573862bb0207fc14e9a18aab4ae6a2a592657f;hpb=adb1e3d5eafba2ef3de1499be286be330afaefef;p=l2e.git diff --git a/src/battle/TargetSelection.cpp b/src/battle/TargetSelection.cpp index c557386..c1aedf3 100644 --- a/src/battle/TargetSelection.cpp +++ b/src/battle/TargetSelection.cpp @@ -73,7 +73,7 @@ void TargetSelection::MoveDown() { SelectHeroes(); return; } - int newCursor(cursor + 2 % 4); + int newCursor((cursor + 2) % 4); if (newCursor < battle->NumHeroes()) { cursor = newCursor; }