When removing an LSL sensor for a script (e.g. through llResetScript() or state change), don't also remove sensors for other scripts in the same prim.

Hopefully fixes http://opensimulator.org/mantis/view.php?id=4448 and http://opensimulator.org/mantis/view.php?id=4452
iar_mods
Justin Clark-Casey (justincc) 2011-11-26 01:55:36 +00:00
parent 86cc00aaa8
commit 4efd9a3b7b
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
List<SenseRepeatClass> NewSensors = new List<SenseRepeatClass>();
foreach (SenseRepeatClass ts in SenseRepeaters)
{
if (ts.localID != m_localID && ts.itemID != m_itemID)
if (ts.localID != m_localID || ts.itemID != m_itemID)
{
NewSensors.Add(ts);
}