diff options
author | frosch <frosch@openttd.org> | 2013-06-24 20:57:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-06-24 20:57:50 +0000 |
commit | abb5a13f1eba08433885f695abb09d3bc2122ee8 (patch) | |
tree | 67e954dd9a0d68b4ca6e516b269bebabd543c9d3 | |
parent | be2b87c1cde283351cf5a79d4932ec2d8d596781 (diff) | |
download | openttd-abb5a13f1eba08433885f695abb09d3bc2122ee8.tar.xz |
(svn r25456) -Fix [FS#5560]: Assertion when opening the refit GUI for a not refittable vehicle.
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index a38b070df..67242ed43 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -523,7 +523,7 @@ struct RefitWindow : public Window { } this->vscroll->SetCount(row); - this->vscroll->ScrollTowards(scroll_row); + if (scroll_row < row) this->vscroll->ScrollTowards(scroll_row); } /** |