forked from github/server
empty ships sink
This commit is contained in:
parent
cb4f7a03c6
commit
623c0dce84
1 changed files with 1 additions and 1 deletions
|
@ -1897,7 +1897,7 @@ get_captain(const ship * sh)
|
||||||
unit *u;
|
unit *u;
|
||||||
|
|
||||||
for (u = r->units; u; u = u->next) {
|
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;
|
return u;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue