1
0
Fork 0

Fix 0455627d: Don't draw timetable panel if no orders (#14441)

pull/14442/head
Loïc Guilloux 2025-07-14 16:18:54 +02:00 committed by GitHub
parent 61a299bc99
commit fc924161ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -427,6 +427,7 @@ struct TimetableWindow : Window {
void DrawTimetablePanel(const Rect &r) const
{
const Vehicle *v = this->vehicle;
if (v->GetNumOrders() == 0) return;
Rect tr = r.Shrink(WidgetDimensions::scaled.framerect);
int i = this->vscroll->GetPosition();
VehicleOrderID order_id = (i + 1) / 2;