diff --git a/source/game/gui/selection.cpp b/source/game/gui/selection.cpp index 3609c6b19..1ac820b99 100644 --- a/source/game/gui/selection.cpp +++ b/source/game/gui/selection.cpp @@ -63,10 +63,10 @@ namespace Game { return false; //check if already selected for (int index = 0; index < (int) selectedUnits.size(); ++index) { - if (selectedUnits[index] == unit) { + if (selectedUnits[index] == unit) return true; - } } + return false; } bool Selection::select(Unit *unit, bool addToSelection, bool toggleSelection) {