(svn r25698) -Fix [FS#5700]: Autoreplace/renew also refits free wagons.
This commit is contained in:
@@ -418,7 +418,7 @@ int Train::GetCurrentMaxSpeed() const
|
||||
/** Update acceleration of the train from the cached power and weight. */
|
||||
void Train::UpdateAcceleration()
|
||||
{
|
||||
assert(this->IsFrontEngine());
|
||||
assert(this->IsFrontEngine() || this->IsFreeWagon());
|
||||
|
||||
uint power = this->gcache.cached_power;
|
||||
uint weight = this->gcache.cached_weight;
|
||||
|
Reference in New Issue
Block a user