mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
Null reference in llGetObjectMass on a seated avatar.
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
e6ec83125b
commit
5655239f44
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user