--- a/train_cmd.c Fri Sep 08 03:59:38 2006 +0000
+++ b/train_cmd.c Fri Sep 08 10:47:39 2006 +0000
@@ -635,6 +635,7 @@
VehiclePositionChanged(v);
TrainConsistChanged(GetFirstVehicleInChain(v));
+ GetPlayer(_current_player)->num_engines[engine]++;
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
if (IsLocalPlayer()) {
@@ -815,6 +816,7 @@
NormalizeTrainVehInDepot(v);
}
+ GetPlayer(_current_player)->num_engines[p1]++;
InvalidateWindow(WC_VEHICLE_DEPOT, tile);
RebuildVehicleLists();
InvalidateWindow(WC_COMPANY, v->owner);