]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/TargetSelection.cpp
reorganized BattleState's interface
[l2e.git] / src / battle / TargetSelection.cpp
index c5573862bb0207fc14e9a18aab4ae6a2a592657f..c1aedf3ca7d8a253b05b368812801a8b3ce6cf67 100644 (file)
@@ -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;
        }