Fix ff628813: Inverted test for if train refit state matches template

This commit is contained in:
Jonathan G Rennison
2020-01-18 21:49:36 +00:00
parent 7611e1229c
commit c3fce9c09b

View File

@@ -262,7 +262,7 @@ bool Vehicle::NeedsServicing() const
needed_money += 2 * Engine::Get(tv->engine_type)->GetCost();
}
return needed_money <= c->money;
} else if (TrainMatchesTemplateRefit(Train::From(this), tv) && tv->refit_as_template) {
} else if (!TrainMatchesTemplateRefit(Train::From(this), tv) && tv->refit_as_template) {
return true;
} else {
return false;