File diff r4911:1934a0c6e865 → r4912:d420151de4c6
order_cmd.c
Show inline comments
 
@@ -823,13 +823,13 @@ void BackupVehicleOrders(const Vehicle *
 
	bak->service_interval = v->service_interval;
 

	
 
	/* Safe custom string, if any */
 
	if (!IsCustomName(v->string_id)) {
 
		bak->name[0] = '\0';
 
	} else {
 
		GetName(v->string_id & 0x7FF, bak->name);
 
		GetName(bak->name, v->string_id & 0x7FF, lastof(bak->name));
 
	}
 

	
 
	/* If we have shared orders, store it on a special way */
 
	if (IsOrderListShared(v)) {
 
		const Vehicle *u = (v->next_shared) ? v->next_shared : v->prev_shared;