summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/train_gui.c b/train_gui.c
index 62d720a21..6527570f9 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -658,10 +658,9 @@ static void TrainDepotWndProc(Window *w, WindowEvent *e)
ResetObjectToPlace();
ShowBuildTrainWindow(w->window_number);
break;
- case 10:
- ResetObjectToPlace();
- ScrollMainWindowToTile(w->window_number);
- break;
+
+ case 10: ScrollMainWindowToTile(w->window_number); break;
+
case 6:
TrainDepotClickTrain(w, e->click.pt.x, e->click.pt.y);
break;