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