From d8931def060ec41fd64ce7b6ab569e14a8f9005b Mon Sep 17 00:00:00 2001
From: diva
Date: Sat, 16 May 2009 00:23:32 +0000
Subject: Another minor bug fix for making notecard/script savings work with
 old asset servers.

---
 OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'OpenSim/Region')

diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 0694576..965b12a 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -193,9 +193,9 @@ namespace OpenSim.Region.Framework.Scenes
 
                         AssetBase asset =
                             CreateAsset(item.Name, item.Description, (sbyte)item.AssetType, data);
+                        item.AssetID = asset.FullID;
                         AssetService.Store(asset);
 
-                        item.AssetID = asset.FullID;
                         userInfo.UpdateItem(item);
 
                         // remoteClient.SendInventoryItemCreateUpdate(item);
-- 
cgit v1.1