summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-24 08:49:14 +0000
committerbjarni <bjarni@openttd.org>2005-01-24 08:49:14 +0000
commitbce73fb080adeeff09b60e7293f8f21b32c83b2c (patch)
treeb54cc1354d404c4ded2ef7a1860bdd4802464add /vehicle_gui.c
parent0f4b0235393291c0e0a0aa4682f72f182f265f05 (diff)
downloadopenttd-bce73fb080adeeff09b60e7293f8f21b32c83b2c.tar.xz
(svn r1635) fix: forgot to set SetVScrollCount properly in autoreplace train GUI. It appears ok now
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 475492604..5052d3d56 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -381,9 +381,9 @@ static void SetupScrollStuffForReplaceWindow(Window *w)
const EngineInfo *info = &_engine_info[engine_id];
if (ENGINE_AVAILABLE && RailVehInfo(engine_id)->power && e->railtype == railtype ) {
- count++;
if ( _player_num_engines[engine_id] ) {
if (sel[0]==0) selected_id[0] = engine_id;
+ count++;
sel[0]--;
}
if (HASBIT(e->player_avail, _local_player)) {