mirror of https://github.com/OpenTTD/OpenTTD
(svn r1300) -Fix: The cost for an autorenew was not always send to the right player ;)
parent
635b854c29
commit
32c3fbd18e
|
@ -1481,6 +1481,8 @@ void MaybeRenewVehicle(Vehicle *v)
|
||||||
if (!_patches.autorenew || v->age - v->max_age < (_patches.autorenew_months * 30))
|
if (!_patches.autorenew || v->age - v->max_age < (_patches.autorenew_months * 30))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
_current_player = v->owner;
|
||||||
|
|
||||||
/* Now renew the vehicle */
|
/* Now renew the vehicle */
|
||||||
DoCommandP(v->tile, v->index, v->engine_type, NULL, CMD_RENEW_VEHICLE);
|
DoCommandP(v->tile, v->index, v->engine_type, NULL, CMD_RENEW_VEHICLE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue