From 3bd63955a29c0fdb90ed5d14c7f0e780e36b6f4f Mon Sep 17 00:00:00 2001 From: CTD Date: Wed, 16 Jul 2014 10:28:32 +0200 Subject: [PATCH] Klammern vergessen --- src/kernel/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/unit.c b/src/kernel/unit.c index c965b6d9f..967ff5db5 100644 --- a/src/kernel/unit.c +++ b/src/kernel/unit.c @@ -798,7 +798,7 @@ void u_set_ship(unit * u, ship * sh) { assert(!u->ship); /* you must leave_ship */ u->ship = sh; - if (sh && !sh->_owner || sh->_owner->number <= 0) { + if (sh && (!sh->_owner || sh->_owner->number <= 0)) { ship_set_owner(u); } }