diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index e3f990dbe3..6b720c4d26 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3928,7 +3928,7 @@ static bool IsReservationLookAheadLongEnough(const Train *v, const ChooseTrainTr if (v->current_order.IsAnyLoadingType() || v->current_order.IsType(OT_WAITING)) return true; - if (HasBit(lookahead_state.flags, CTTLASF_STOP_FOUND) || HasBit(lookahead_state.flags, TRLF_DEPOT_END)) return true; + if (HasBit(lookahead_state.flags, CTTLASF_STOP_FOUND) || HasBit(v->lookahead->flags, TRLF_DEPOT_END)) return true; if (v->reverse_distance > 1) { if (v->lookahead->reservation_end_position >= v->lookahead->current_position + v->reverse_distance - 1) return true;