summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c
index 17ba95ce2..b872e9ea2 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -352,7 +352,7 @@ int32 CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* For ships, make sure that the station is not too far away from the
* previous destination, for human players with new pathfinding disabled */
- if (v->type == VEH_Ship && IS_HUMAN_PLAYER(v->owner) &&
+ if (v->type == VEH_Ship && IsHumanPlayer(v->owner) &&
sel_ord != 0 && GetVehicleOrder(v, sel_ord - 1)->type == OT_GOTO_STATION
&& !_patches.new_pathfinding_all) {