(svn r1635) fix: forgot to set SetVScrollCount properly in autoreplace train GUI. It appears ok now

This commit is contained in:
bjarni 2005-01-24 08:49:14 +00:00
parent ad6cc5a12d
commit b4c4daf775
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {