Fix minor race condition in llGetRootPosition() where inconsistent results could be returned for moving prims

0.7.4-extended
Justin Clark-Casey (justincc) 2013-03-14 22:33:44 +00:00
parent 75c169ffe5
commit 213f0e3a12
1 changed files with 2 additions and 2 deletions

View File

@ -7756,8 +7756,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Vector llGetRootPosition() public LSL_Vector llGetRootPosition()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return new LSL_Vector(m_host.ParentGroup.AbsolutePosition.X, m_host.ParentGroup.AbsolutePosition.Y,
m_host.ParentGroup.AbsolutePosition.Z); return new LSL_Vector(m_host.ParentGroup.AbsolutePosition);
} }
/// <summary> /// <summary>