From e0498e1638e1d0aff7c571fc05bf4a5969a681bc Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 9 Nov 2008 23:05:08 +0000 Subject: [PATCH] * Fixed asset bug. --- OpenSim/Framework/Communications/Cache/AssetCache.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index 0581cc69db..9ec5a98312 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -484,7 +484,7 @@ namespace OpenSim.Framework.Communications.Cache } // It has an entry in our cache - AssetInfo asset = (AssetInfo)m_memcache[requestID]; + AssetBase asset = (AssetBase)m_memcache[requestID]; // FIXME: We never tell the client about assets which do not exist when requested by this transfer mechanism, which can't be right. if (null == asset) @@ -504,7 +504,7 @@ namespace OpenSim.Framework.Communications.Cache req.TransferRequestID = transferRequest.TransferInfo.TransferID; req.AssetRequestSource = source; req.Params = transferRequest.TransferInfo.Params; - req.AssetInf = asset; + req.AssetInf = new AssetInfo(asset); req.NumPackets = CalculateNumPackets(asset.Data); AssetRequests.Add(req); }