summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--train_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c
index 07aabfdff..34e02a3b6 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -1506,7 +1506,7 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e)
break;
case 10:
- if (IsWindowOfPrototype(w, _player_trains_widgets)) break;
+ if (!IsWindowOfPrototype(w, _player_trains_widgets)) break;
ShowReplaceVehicleWindow(VEH_Train);
break;