From b4c4daf775d26134a2b8c07488e81a591a69faad Mon Sep 17 00:00:00 2001 From: bjarni Date: Mon, 24 Jan 2005 08:49:14 +0000 Subject: [PATCH] (svn r1635) fix: forgot to set SetVScrollCount properly in autoreplace train GUI. It appears ok now --- vehicle_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle_gui.c b/vehicle_gui.c index 475492604c..5052d3d56b 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)) {