llDie() should not work on attachments (results in an incosistent attachment state)

avinationmerge
CasperW 2010-02-25 12:07:56 +01:00
parent efd4810851
commit e99341d7df
1 changed files with 1 additions and 1 deletions

View File

@ -1118,7 +1118,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public virtual void llDie()
{
m_host.AddScriptLPS(1);
throw new SelfDeleteException();
if (!m_host.IsAttachment) throw new SelfDeleteException();
}
public LSL_Float llGround(LSL_Vector offset)