From 6b0097039ad2f0c57ade46b8446d31a934b7170d Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 16 Sep 2008 17:41:01 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=2202 * llGround causes Array out of bounds exception in KanEd#11 script * Thanks Y. Nitta! --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Common') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 44033c1..76b88bc 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -960,8 +960,8 @@ namespace OpenSim.Region.ScriptEngine.Common public double llGround(LSL_Types.Vector3 offset) { m_host.AddScriptLPS(1); - int x = (int)(m_host.AbsolutePosition.X + offset.x); - int y = (int)(m_host.AbsolutePosition.Y + offset.y); + int x = (int)(m_host.OffsetPosition.X + offset.x); + int y = (int)(m_host.OffsetPosition.Y + offset.y); return World.GetLandHeight(x, y); } -- cgit v1.1