]> git.localhorst.tv Git - l2e.git/commitdiff
fixed TargetSelection::MoveDown()
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 11 Aug 2012 14:15:36 +0000 (16:15 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 11 Aug 2012 14:15:36 +0000 (16:15 +0200)
pressing down when in the second hero row now moves the cursor to the first row

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