From 2103707489947ca6fe97fda473f39d3f944af623 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Jan 2021 10:22:17 +0100 Subject: [PATCH] fix follow_ship crash error message for non-captains was not generated --- src/move.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/move.c b/src/move.c index 21c173106..b165a57c5 100644 --- a/src/move.c +++ b/src/move.c @@ -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; }