empty ships sink

This commit is contained in:
Enno Rehling 2011-03-06 12:38:49 +01:00
parent cb4f7a03c6
commit 623c0dce84

View file

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