Fix linking phantom and nonphantom prims. Make the error message more friendly

when estate_settings.xml is empty or missing
This commit is contained in:
Melanie Thielker
2008-10-12 16:40:18 +00:00
parent f52c5febd3
commit cc72ea532a
2 changed files with 6 additions and 2 deletions

View File

@@ -553,7 +553,7 @@ namespace OpenSim.Region.Environment.Scenes
if (ParentGroup != null && ParentGroup.RootPart != null)
{
if (_parentID != 0)
if (_parentID != 0 && PhysActor != null)
{
Vector3 resultingposition = GetWorldPosition();
PhysActor.Position = new PhysicsVector(resultingposition.X, resultingposition.Y, resultingposition.Z);