src/ship_cmd.cpp
changeset 7425 d9bc116f2f54
parent 7398 b933416cf32b
child 7490 bb27d92565d3
equal deleted inserted replaced
7424:40212c733e38 7425:d9bc116f2f54
   895 
   895 
   896 		InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
   896 		InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
   897 		RebuildVehicleLists();
   897 		RebuildVehicleLists();
   898 		InvalidateWindow(WC_COMPANY, v->owner);
   898 		InvalidateWindow(WC_COMPANY, v->owner);
   899 		if (IsLocalPlayer())
   899 		if (IsLocalPlayer())
   900 			InvalidateAutoreplaceWindow(VEH_SHIP, v->group_id); // updates the replace Ship window
   900 			InvalidateAutoreplaceWindow(v->engine_type, v->group_id); // updates the replace Ship window
   901 
   901 
   902 		GetPlayer(_current_player)->num_engines[p1]++;
   902 		GetPlayer(_current_player)->num_engines[p1]++;
   903 
   903 
   904 		v_auto_delete.Detach();
   904 		v_auto_delete.Detach();
   905 	}
   905 	}