changeset 19898:004b4ee1823f draft

(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.
author michi_cc <michi_cc@openttd.org>
date Thu, 20 Dec 2012 19:43:54 +0000
parents f081ce2fbbc8
children 4f44e1c86f9c
files src/train_cmd.cpp
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -373,8 +373,6 @@
 	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)) {