diff options
author | michi_cc <michi_cc@openttd.org> | 2012-12-20 19:43:54 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-12-20 19:43:54 +0000 |
commit | 0ef3ce8c08a76a946f7333da14a2a4a99c9e3d51 (patch) | |
tree | 77e8ca9cfe1759890584459e2c440ca882436618 | |
parent | 403e19d36f9a427200715c7e1a69ca82d5d4188e (diff) | |
download | openttd-0ef3ce8c08a76a946f7333da14a2a4a99c9e3d51.tar.xz |
(svn r24831) -Fix [FS#5398]: [NewGRF] Incorrect values are better than a crash when a NewGRF queries vehicle variable 4C before vehicle initialisation is completed.
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index c7bad3bf0..366d7cde5 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -373,8 +373,6 @@ int Train::GetCurrentMaxSpeed() const if (_settings_game.vehicle.train_acceleration_model == AM_ORIGINAL) return min(this->gcache.cached_max_track_speed, this->current_order.max_speed); int max_speed = this->tcache.cached_max_curve_speed; - assert(max_speed == this->GetCurveSpeedLimit()); - if (IsRailStationTile(this->tile)) { StationID sid = GetStationIndex(this->tile); if (this->current_order.ShouldStopAtStation(this, sid)) { |