mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 11:41:46 +02:00
Fixed bug in function
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user