aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index e6b8364..b5bb951 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -352,8 +352,11 @@ namespace OpenSim.Region.Environment.Scenes
352 352
353 private void RemoveFromPhysicalScene() 353 private void RemoveFromPhysicalScene()
354 { 354 {
355 m_scene.PhysScene.RemoveAvatar( this.PhysicsActor ); 355 if (this.PhysicsActor)
356 this.PhysicsActor = null; 356 {
357 m_scene.PhysScene.RemoveAvatar(this.PhysicsActor);
358 this.PhysicsActor = null;
359 }
357 } 360 }
358 361
359 /// <summary> 362 /// <summary>
@@ -919,4 +922,4 @@ namespace OpenSim.Region.Environment.Scenes
919 RemoveFromPhysicalScene(); 922 RemoveFromPhysicalScene();
920 } 923 }
921 } 924 }
922} \ No newline at end of file 925}