diff options
author | Talun | 2012-04-16 20:24:56 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-04-17 00:56:46 +0100 |
commit | 5655239f440dce36cdf9288db70be567aef2d565 (patch) | |
tree | 2f379780ee2acce2409701e3df4973bf7c42d229 /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | Use INSERT OR REPLACE INTO sql in WebStatsModule for session update rather th... (diff) | |
download | opensim-SC_OLD-5655239f440dce36cdf9288db70be567aef2d565.zip opensim-SC_OLD-5655239f440dce36cdf9288db70be567aef2d565.tar.gz opensim-SC_OLD-5655239f440dce36cdf9288db70be567aef2d565.tar.bz2 opensim-SC_OLD-5655239f440dce36cdf9288db70be567aef2d565.tar.xz |
Null reference in llGetObjectMass on a seated avatar.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a19427d..5581727 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -9255,7 +9255,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9255 | // child agents have a mass of 1.0 | 9255 | // child agents have a mass of 1.0 |
9256 | return 1; | 9256 | return 1; |
9257 | else | 9257 | else |
9258 | return (double)avatar.PhysicsActor.Mass; | 9258 | return (double)avatar.GetMass(); |
9259 | } | 9259 | } |
9260 | catch (KeyNotFoundException) | 9260 | catch (KeyNotFoundException) |
9261 | { | 9261 | { |