From 76539c6ba0ac1bc6ecd179cd0fc229f40872598b Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sat, 11 Aug 2012 16:15:36 +0200 Subject: [PATCH] fixed TargetSelection::MoveDown() pressing down when in the second hero row now moves the cursor to the first row --- src/battle/TargetSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2