Fixed bug in function

This commit is contained in:
mathusummut
2019-02-03 18:16:25 +01:00
parent 7e7c91608a
commit 4d7eba0135

View File

@@ -63,10 +63,10 @@ namespace Game {
return false; return false;
//check if already selected //check if already selected
for (int index = 0; index < (int) selectedUnits.size(); ++index) { for (int index = 0; index < (int) selectedUnits.size(); ++index) {
if (selectedUnits[index] == unit) { if (selectedUnits[index] == unit)
return true; return true;
}
} }
return false;
} }
bool Selection::select(Unit *unit, bool addToSelection, bool toggleSelection) { bool Selection::select(Unit *unit, bool addToSelection, bool toggleSelection) {