diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/depot_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 4aff4700b..24a14b833 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -663,7 +663,8 @@ struct DepotWindow : Window { DepotSortList(&this->vehicle_list); uint new_unitnumber_digits = GetUnitNumberDigits(this->vehicle_list); - if (this->unitnumber_digits != new_unitnumber_digits) { + /* Only increase the size; do not decrease to prevent constant changes */ + if (this->unitnumber_digits < new_unitnumber_digits) { this->unitnumber_digits = new_unitnumber_digits; this->ReInit(); } |