From 5ede413531b69b84efc0d91e6c673e656ddd8718 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 24 Jun 2013 20:57:50 +0000 Subject: [PATCH] (svn r25456) -Fix [FS#5560]: Assertion when opening the refit GUI for a not refittable vehicle. --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index a38b070dfa..67242ed43c 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); } /**