diff options
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 3020caa8e..5dffecee4 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3022,7 +3022,7 @@ static void TrainController(Vehicle *v, bool update_image) if (IsFrontEngine(v) && !TrainCheckIfLineEnds(v)) return; r = VehicleEnterTile(v, gp.new_tile, gp.x, gp.y); - if (HASBIT(r, VETS_ENTERED_WORMHOLE)) { + if (HASBIT(r, VETS_CANNOT_ENTER)) { goto invalid_rail; } if (HASBIT(r, VETS_ENTERED_STATION)) { |