diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs index 3ef21db..23cd4e8 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs | |||
@@ -239,6 +239,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
239 | lock (QueueLock) | 239 | lock (QueueLock) |
240 | { | 240 | { |
241 | 241 | ||
242 | // Do we have any scripts in this object at all? If not, return | ||
243 | if (myScriptEngine.myScriptManager.Scripts.ContainsKey(localID) == false) | ||
244 | return; | ||
245 | |||
242 | foreach (LLUUID itemID in myScriptEngine.myScriptManager.GetScriptKeys(localID)) | 246 | foreach (LLUUID itemID in myScriptEngine.myScriptManager.GetScriptKeys(localID)) |
243 | { | 247 | { |
244 | // Add to each script in that object | 248 | // Add to each script in that object |