mirror of
https://github.com/glest/glest-source.git
synced 2025-10-02 18:36:48 +02:00
- attempt to fix a segfault in grouped units
This commit is contained in:
@@ -50,16 +50,16 @@ bool CommandGroupSorter::compare(const CommandGroupSorter *l, const CommandGroup
|
|||||||
bool CommandGroupSorter::operator< (const CommandGroupSorter &j) const {
|
bool CommandGroupSorter::operator< (const CommandGroupSorter &j) const {
|
||||||
bool result = false;
|
bool result = false;
|
||||||
// If comparer if null or dead
|
// If comparer if null or dead
|
||||||
// if(j.unit == NULL || j.unit->isAlive() == false) {
|
if(j.unit == NULL || j.unit->isAlive() == false) {
|
||||||
// // if source is null or dead also
|
// if source is null or dead also
|
||||||
// if((this->unit == NULL || this->unit->isAlive() == false)) {
|
if((this->unit == NULL || this->unit->isAlive() == false)) {
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
// return true;
|
return true;
|
||||||
// }
|
}
|
||||||
// else if((this->unit == NULL || this->unit->isAlive() == false)) {
|
else if((this->unit == NULL || this->unit->isAlive() == false)) {
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
|
|
||||||
Command *command= this->unit->getCurrrentCommandThreadSafe();
|
Command *command= this->unit->getCurrrentCommandThreadSafe();
|
||||||
Command *commandPeer = j.unit->getCurrrentCommandThreadSafe();
|
Command *commandPeer = j.unit->getCurrrentCommandThreadSafe();
|
||||||
|
Reference in New Issue
Block a user