this should fix mantis #443

afrisby
dan miller 2007-09-27 23:06:24 +00:00
parent 863195612b
commit 129d266867
1 changed files with 6 additions and 3 deletions

View File

@ -352,8 +352,11 @@ namespace OpenSim.Region.Environment.Scenes
private void RemoveFromPhysicalScene() private void RemoveFromPhysicalScene()
{ {
m_scene.PhysScene.RemoveAvatar( this.PhysicsActor ); if (this.PhysicsActor)
this.PhysicsActor = null; {
m_scene.PhysScene.RemoveAvatar(this.PhysicsActor);
this.PhysicsActor = null;
}
} }
/// <summary> /// <summary>
@ -919,4 +922,4 @@ namespace OpenSim.Region.Environment.Scenes
RemoveFromPhysicalScene(); RemoveFromPhysicalScene();
} }
} }
} }