mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Guard against multiple calls to SetOwnerId on one logical ownership change.
This commit is contained in:
@@ -2123,11 +2123,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public void SetOwnerId(UUID userId)
|
||||
{
|
||||
ForEachPart(delegate(SceneObjectPart part)
|
||||
ForEachPart(delegate(SceneObjectPart part)
|
||||
{
|
||||
part.LastOwnerID = part.OwnerID;
|
||||
part.OwnerID = userId;
|
||||
|
||||
if (OwnerID != userId)
|
||||
{
|
||||
part.LastOwnerID = part.OwnerID;
|
||||
part.OwnerID = userId;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user