* Fixed asset bug.

0.6.1-post-fixes
Adam Frisby 2008-11-09 23:05:08 +00:00
parent 298ab2f9cb
commit e0498e1638
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}