fix follow_ship crash

error message for non-captains was not generated
This commit is contained in:
Enno Rehling 2021-01-03 10:22:17 +01:00
parent 8ef3d1ed3f
commit 2103707489
1 changed files with 2 additions and 2 deletions

View File

@ -2258,8 +2258,8 @@ int follow_ship(unit * u, order * ord)
if (fval(u, UFL_NOTMOVING)) {
return 0;
}
if (!fval(u_race(u), RCF_FLY|RCF_SWIM)) {
if (!u->ship) {
if (!u->ship) {
if (!fval(u_race(u), RCF_FLY|RCF_SWIM)) {
cmistake(u, ord, 144, MSG_MOVE);
return 0;
}