diff options
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1841,7 +1841,7 @@ static void MaybeReplaceVehicle(Vehicle *v) } } while (w->type == VEH_Train && (w = GetNextVehicle(w)) != NULL); - if (p->money64 < (int32)(cost + p->engine_renew_money) || cost == 0) { + if (!(flags & DC_EXEC) && (p->money64 < (int32)(cost + p->engine_renew_money) || cost == 0)) { if (p->money64 < (int32)(cost + p->engine_renew_money) && ( _local_player == v->owner ) && cost != 0) { StringID message; SetDParam(0, v->unitnumber); |