mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 10:45:40 +08:00
Added OnRemoveScript event handler to ScriptEngine. Fixed event queuing of empty objects crash.
This commit is contained in:
@@ -239,6 +239,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
lock (QueueLock)
|
||||
{
|
||||
|
||||
// Do we have any scripts in this object at all? If not, return
|
||||
if (myScriptEngine.myScriptManager.Scripts.ContainsKey(localID) == false)
|
||||
return;
|
||||
|
||||
foreach (LLUUID itemID in myScriptEngine.myScriptManager.GetScriptKeys(localID))
|
||||
{
|
||||
// Add to each script in that object
|
||||
|
||||
Reference in New Issue
Block a user