(svn r25698) -Fix [FS#5700]: Autoreplace/renew also refits free wagons.

This commit is contained in:
frosch
2013-08-06 21:01:14 +00:00
parent 8f95bab001
commit fbe6b92b1d
2 changed files with 7 additions and 4 deletions

View File

@@ -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;