Null reference in llGetObjectMass on a seated avatar.

This commit is contained in:
Talun
2012-04-16 20:24:56 +01:00
committed by Justin Clark-Casey (justincc)
parent e6ec83125b
commit 5655239f44

View File

@@ -9255,7 +9255,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// child agents have a mass of 1.0
return 1;
else
return (double)avatar.PhysicsActor.Mass;
return (double)avatar.GetMass();
}
catch (KeyNotFoundException)
{