From 623c0dce840ad9cc59f18d30a63071e0ad3ab088 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 6 Mar 2011 12:38:49 +0100 Subject: [PATCH] empty ships sink --- src/kernel/move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/move.c b/src/kernel/move.c index e34411cba..6756739a0 100644 --- a/src/kernel/move.c +++ b/src/kernel/move.c @@ -1897,7 +1897,7 @@ get_captain(const ship * sh) unit *u; for (u = r->units; u; u = u->next) { - if (u->ship == sh && eff_skill(u, SK_SAILING, r) >= sh->type->cptskill) + if (u->ship == sh && u->number && eff_skill(u, SK_SAILING, r) >= sh->type->cptskill) return u; }