summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-02-22 20:28:24 +0000
committerfrosch <frosch@openttd.org>2011-02-22 20:28:24 +0000
commitee111ce1a4cffff6d6efaaec430614d2fc736dd5 (patch)
tree4a68ed57e2cf7ef160e32e967c5464724e590d80
parent4860eff98c5201877188cddd34aea395b2ba2072 (diff)
downloadopenttd-ee111ce1a4cffff6d6efaaec430614d2fc736dd5.tar.xz
(svn r22128) -Fix [FS#4530]: Build-station-window showed wrong selection when reopening. (Regiovogel)
-rw-r--r--src/rail_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 4503a29f2..2b391218b 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -1004,7 +1004,7 @@ public:
NWidgetMatrix *matrix = this->GetWidget<NWidgetMatrix>(BRSW_MATRIX);
matrix->SetScrollbar(this->vscroll2);
matrix->SetCount(_railstation.station_count);
- matrix->SetClicked(0);
+ matrix->SetClicked(_railstation.station_type);
}
}