From: Daniel Karbach Date: Sat, 11 Aug 2012 14:15:36 +0000 (+0200) Subject: fixed TargetSelection::MoveDown() X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=76539c6ba0ac1bc6ecd179cd0fc229f40872598b;p=l2e.git fixed TargetSelection::MoveDown() pressing down when in the second hero row now moves the cursor to the first row --- 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; }