Fix script data not being reset as it should be

avinationmerge
Melanie 2011-01-24 02:20:54 +01:00
parent dbbf43663e
commit 649d9ef934
1 changed files with 4 additions and 0 deletions

View File

@ -189,6 +189,8 @@ namespace OpenSim.Region.Framework.Scenes
{ {
item.LastOwnerID = item.OwnerID; item.LastOwnerID = item.OwnerID;
item.OwnerID = ownerId; item.OwnerID = ownerId;
item.PermsMask = 0;
item.PermsGranter = UUID.Zero;
} }
} }
m_items.LockItemsForWrite(false); m_items.LockItemsForWrite(false);
@ -1216,6 +1218,8 @@ namespace OpenSim.Region.Framework.Scenes
item.CurrentPermissions &= item.NextPermissions; item.CurrentPermissions &= item.NextPermissions;
item.BasePermissions &= item.NextPermissions; item.BasePermissions &= item.NextPermissions;
item.EveryonePermissions &= item.NextPermissions; item.EveryonePermissions &= item.NextPermissions;
item.PermsMask = 0;
item.PermsGranter = UUID.Zero;
} }
} }