(svn r1300) -Fix: The cost for an autorenew was not always send to the right player ;)

This commit is contained in:
truelight 2004-12-30 09:46:40 +00:00
parent 635b854c29
commit 32c3fbd18e
1 changed files with 2 additions and 0 deletions

View File

@ -1481,6 +1481,8 @@ void MaybeRenewVehicle(Vehicle *v)
if (!_patches.autorenew || v->age - v->max_age < (_patches.autorenew_months * 30))
return;
_current_player = v->owner;
/* Now renew the vehicle */
DoCommandP(v->tile, v->index, v->engine_type, NULL, CMD_RENEW_VEHICLE);
}