diff options
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 095c41af9..8caeea967 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -305,7 +305,7 @@ struct DepotWindow : Window { } uint diff_x, diff_y; - if (v->type == VEH_TRAIN || v->type == VEH_ROAD) { + if (v->IsGroundVehicle()) { /* Arrange unitnumber and flag horizontally */ diff_x = this->flag_width + WD_FRAMERECT_LEFT; diff_y = (this->resize.step_height - this->flag_height) / 2 - 2; |