summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-24 20:57:50 +0000
committerfrosch <frosch@openttd.org>2013-06-24 20:57:50 +0000
commitabb5a13f1eba08433885f695abb09d3bc2122ee8 (patch)
tree67e954dd9a0d68b4ca6e516b269bebabd543c9d3 /src
parentbe2b87c1cde283351cf5a79d4932ec2d8d596781 (diff)
downloadopenttd-abb5a13f1eba08433885f695abb09d3bc2122ee8.tar.xz
(svn r25456) -Fix [FS#5560]: Assertion when opening the refit GUI for a not refittable vehicle.
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp2
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);
}
/**