diff options
author | Tom | 2011-09-04 07:06:36 -0700 |
---|---|---|
committer | Tom | 2011-09-04 07:06:36 -0700 |
commit | 66dec3b8742eff04fbbcc6e3249fe4ba87986500 (patch) | |
tree | 76cc708a821d35fac5cdbbce2de304b47064e732 /OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |
parent | Guard another nullref (diff) | |
parent | Fixed BulletSim config files for Linux *.so libraries. (diff) | |
download | opensim-SC-66dec3b8742eff04fbbcc6e3249fe4ba87986500.zip opensim-SC-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.gz opensim-SC-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.bz2 opensim-SC-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.xz |
Resolve merge commits, stage 1
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index 9548253..cf25189 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -234,7 +234,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
234 | m_MaxScriptQueue = maxScriptQueue; | 234 | m_MaxScriptQueue = maxScriptQueue; |
235 | m_stateSource = stateSource; | 235 | m_stateSource = stateSource; |
236 | m_postOnRez = postOnRez; | 236 | m_postOnRez = postOnRez; |
237 | m_AttachedAvatar = part.AttachedAvatar; | 237 | m_AttachedAvatar = part.ParentGroup.AttachedAvatar; |
238 | m_RegionID = part.ParentGroup.Scene.RegionInfo.RegionID; | 238 | m_RegionID = part.ParentGroup.Scene.RegionInfo.RegionID; |
239 | 239 | ||
240 | if (part != null) | 240 | if (part != null) |
@@ -772,13 +772,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
772 | else if ((e is TargetInvocationException) && (e.InnerException is SelfDeleteException)) | 772 | else if ((e is TargetInvocationException) && (e.InnerException is SelfDeleteException)) |
773 | { | 773 | { |
774 | m_InSelfDelete = true; | 774 | m_InSelfDelete = true; |
775 | if (part != null && part.ParentGroup != null) | 775 | if (part != null) |
776 | m_Engine.World.DeleteSceneObject(part.ParentGroup, false); | 776 | m_Engine.World.DeleteSceneObject(part.ParentGroup, false); |
777 | } | 777 | } |
778 | else if ((e is TargetInvocationException) && (e.InnerException is ScriptDeleteException)) | 778 | else if ((e is TargetInvocationException) && (e.InnerException is ScriptDeleteException)) |
779 | { | 779 | { |
780 | m_InSelfDelete = true; | 780 | m_InSelfDelete = true; |
781 | if (part != null && part.ParentGroup != null) | 781 | if (part != null) |
782 | part.Inventory.RemoveInventoryItem(m_ItemID); | 782 | part.Inventory.RemoveInventoryItem(m_ItemID); |
783 | } | 783 | } |
784 | } | 784 | } |