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

user_profiles
Justin Clark-Casey (justincc) 2013-03-14 22:33:44 +00:00
parent e7603f98b7
commit dd6f1fc637
1 changed files with 2 additions and 2 deletions

View File

@ -7829,8 +7829,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>