diff options
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateRegionData.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateRegionData.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateRegionData.cs b/OpenSim/Data/NHibernate/NHibernateRegionData.cs index 86a93f2..52db32d 100644 --- a/OpenSim/Data/NHibernate/NHibernateRegionData.cs +++ b/OpenSim/Data/NHibernate/NHibernateRegionData.cs | |||
@@ -259,7 +259,9 @@ namespace OpenSim.Data.NHibernate | |||
259 | { | 259 | { |
260 | inventory.Add(i); | 260 | inventory.Add(i); |
261 | } | 261 | } |
262 | p.RestoreInventoryItems(inventory); | 262 | |
263 | if (inventory.Count > 0) | ||
264 | p.RestoreInventoryItems(inventory); | ||
263 | } | 265 | } |
264 | foreach (SceneObjectGroup g in SOG.Values) | 266 | foreach (SceneObjectGroup g in SOG.Values) |
265 | { | 267 | { |