diff options
author | Tedd Hansen | 2007-08-22 18:41:31 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-22 18:41:31 +0000 |
commit | 0eadb7591eef84b082b81e8f5df941c0c1f7725a (patch) | |
tree | 370409f1a6321cb0c1240f8f3bb927d51d461a81 /OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs | |
parent | Added OnRemoveScript(uint localID, LLUUID itemID) event , trigged when a scri... (diff) | |
download | opensim-SC_OLD-0eadb7591eef84b082b81e8f5df941c0c1f7725a.zip opensim-SC_OLD-0eadb7591eef84b082b81e8f5df941c0c1f7725a.tar.gz opensim-SC_OLD-0eadb7591eef84b082b81e8f5df941c0c1f7725a.tar.bz2 opensim-SC_OLD-0eadb7591eef84b082b81e8f5df941c0c1f7725a.tar.xz |
Added OnRemoveScript event handler to ScriptEngine. Fixed event queuing of empty objects crash.
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 |