(svn r1300) -Fix: The cost for an autorenew was not always send to the right player ;)
authortruelight
Thu, 30 Dec 2004 09:46:40 +0000
changeset 829 b71111ccf2cc
parent 828 bb08003e61b5
child 830 8114845804c9
(svn r1300) -Fix: The cost for an autorenew was not always send to the right player ;)
vehicle.c
--- a/vehicle.c	Thu Dec 30 09:43:12 2004 +0000
+++ b/vehicle.c	Thu Dec 30 09:46:40 2004 +0000
@@ -1481,6 +1481,8 @@
 	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);
 }