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 b872e9ea2..8614bb639 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -823,7 +823,7 @@ void BackupVehicleOrders(const Vehicle *v, BackuppedOrders *bak)
bak->service_interval = v->service_interval;
/* Safe custom string, if any */
- if ((v->string_id & 0xF800) != 0x7800) {
+ if (!IsCustomName(v->string_id)) {
bak->name[0] = '\0';
} else {
GetName(v->string_id & 0x7FF, bak->name);