forked from github/server
fix follow_ship crash
error message for non-captains was not generated
This commit is contained in:
parent
8ef3d1ed3f
commit
2103707489
|
@ -2258,8 +2258,8 @@ int follow_ship(unit * u, order * ord)
|
||||||
if (fval(u, UFL_NOTMOVING)) {
|
if (fval(u, UFL_NOTMOVING)) {
|
||||||
return 0;
|
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);
|
cmistake(u, ord, 144, MSG_MOVE);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue