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()
{
m_host.AddScriptLPS(1);
LLUUID AVID = m_host.GetAvatarOnSitTarget();
if (AVID != LLUUID.Zero)
return AVID.ToString();
else
return String.Empty;
return m_host.GetAvatarOnSitTarget().ToString();
//LLUUID AVID = m_host.GetAvatarOnSitTarget();
//if (AVID != LLUUID.Zero)
// return AVID.ToString();
//else
// return String.Empty;
}
public void llAddToLandPassList(string avatar, double hours)