diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AssetCache.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index f160ce4..7099760 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs | |||
@@ -348,7 +348,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
348 | /// <param name="asset"></param> | 348 | /// <param name="asset"></param> |
349 | public void AddAsset(AssetBase asset) | 349 | public void AddAsset(AssetBase asset) |
350 | { | 350 | { |
351 | if (asset.Type == 0) | 351 | if (asset.Type == (int)AssetType.Texture) |
352 | { | 352 | { |
353 | if (!Textures.ContainsKey(asset.FullID)) | 353 | if (!Textures.ContainsKey(asset.FullID)) |
354 | { | 354 | { |
@@ -365,9 +365,9 @@ namespace OpenSim.Framework.Communications.Cache | |||
365 | } | 365 | } |
366 | } | 366 | } |
367 | else | 367 | else |
368 | { | 368 | { |
369 | if (!Assets.ContainsKey(asset.FullID)) | 369 | if (!Assets.ContainsKey(asset.FullID)) |
370 | { | 370 | { |
371 | AssetInfo assetInf = new AssetInfo(asset); | 371 | AssetInfo assetInf = new AssetInfo(asset); |
372 | Assets.Add(assetInf.FullID, assetInf); | 372 | Assets.Add(assetInf.FullID, assetInf); |
373 | 373 | ||