Patches llAvatarOnSitTarget to return NULL_KEY opposed to a blank string. Should fix Mantis 838

0.6.0-stable
alondria 2008-03-29 19:49:07 +00:00
parent 7fcffa3a3a
commit 0e0445573e
1 changed files with 7 additions and 6 deletions

View File

@ -3292,12 +3292,13 @@ namespace OpenSim.Region.ScriptEngine.Common
public string llAvatarOnSitTarget() public string llAvatarOnSitTarget()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
LLUUID AVID = m_host.GetAvatarOnSitTarget(); return m_host.GetAvatarOnSitTarget().ToString();
//LLUUID AVID = m_host.GetAvatarOnSitTarget();
if (AVID != LLUUID.Zero)
return AVID.ToString(); //if (AVID != LLUUID.Zero)
else // return AVID.ToString();
return String.Empty; //else
// return String.Empty;
} }
public void llAddToLandPassList(string avatar, double hours) public void llAddToLandPassList(string avatar, double hours)