small change

This commit is contained in:
Enno Rehling 2008-01-09 22:00:17 +00:00
parent 73f354be90
commit 87b28ddd9c

View file

@ -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;
}