diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index dd46e96979..9023df76ae 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -4057,7 +4057,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse) /* Currently the locomotive is active. Determine which one of the * available tracks to choose */ chosen_track = TrackToTrackBits(ChooseTrainTrack(v, gp.new_tile, enterdir, bits, false, nullptr, true)); - assert(chosen_track & (bits | GetReservedTrackbits(gp.new_tile))); + assert_msg_tile(chosen_track & (bits | GetReservedTrackbits(gp.new_tile)), gp.new_tile, "0x%X, 0x%X, 0x%X", chosen_track, bits, GetReservedTrackbits(gp.new_tile)); if (v->force_proceed != TFP_NONE && IsPlainRailTile(gp.new_tile) && HasSignals(gp.new_tile)) { /* For each signal we find decrease the counter by one.