(svn r1635) fix: forgot to set SetVScrollCount properly in autoreplace train GUI. It appears ok now
authorbjarni
Mon, 24 Jan 2005 08:49:14 +0000
changeset 1134 f7342e7b4718
parent 1133 9424bc9132cf
child 1135 6c3b6e855c98
(svn r1635) fix: forgot to set SetVScrollCount properly in autoreplace train GUI. It appears ok now
vehicle_gui.c
--- a/vehicle_gui.c	Mon Jan 24 07:18:45 2005 +0000
+++ b/vehicle_gui.c	Mon Jan 24 08:49:14 2005 +0000
@@ -381,9 +381,9 @@
 				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)) {