From ee352ebc7971fbb62319da53c520304bda5a15a2 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 11 May 2008 04:32:43 +0000 Subject: * Added NPCModule and NPCAvatar classes for NPCs. Primitive, but we can grow them out. * Fix for Scene.Inventory.cs - It assumes every entity at startup is a SceneObjectGroup. (Actually, this shouldn't have compiled[!] without a warning.) * Fix for LandManager at startup - it assumes there's a land channel when perhaps there isnt. (Bug that needs another refactor to fix. [Mike - I've assigned a ticket to you about this]) --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index e78ad2b..29bcf0b 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -50,9 +50,12 @@ namespace OpenSim.Region.Environment.Scenes { m_log.Info("[PRIM INVENTORY]: Starting scripts in scene"); - foreach (SceneObjectGroup group in Entities.Values) + foreach (EntityBase group in Entities.Values) { - group.StartScripts(); + if (group is SceneObjectGroup) + { + ((SceneObjectGroup) group).StartScripts(); + } } } -- cgit v1.1