forked from github/server
small change
This commit is contained in:
parent
73f354be90
commit
87b28ddd9c
1 changed files with 19 additions and 17 deletions
|
@ -503,9 +503,11 @@ ucontact(const unit * u, const unit * u2)
|
|||
if (u->faction==u2->faction) return true;
|
||||
|
||||
/* Explizites KONTAKTIERE */
|
||||
for (ru = a_find(u->attribs, &at_contact); ru && ru->type==&at_contact; ru = ru->next)
|
||||
if (((unit*)ru->data.v) == u2)
|
||||
for (ru = a_find(u->attribs, &at_contact); ru && ru->type==&at_contact; ru = ru->next) {
|
||||
if (((unit*)ru->data.v) == u2) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue