Klammern vergessen

This commit is contained in:
CTD 2014-07-16 10:28:32 +02:00
parent 700a88fd79
commit 3bd63955a2
1 changed files with 1 additions and 1 deletions

View File

@ -798,7 +798,7 @@ void u_set_ship(unit * u, ship * sh)
{ {
assert(!u->ship); /* you must leave_ship */ assert(!u->ship); /* you must leave_ship */
u->ship = sh; u->ship = sh;
if (sh && !sh->_owner || sh->_owner->number <= 0) { if (sh && (!sh->_owner || sh->_owner->number <= 0)) {
ship_set_owner(u); ship_set_owner(u);
} }
} }