From 4cbf0444df4b4c0eb3616e19279203e5f17a939b Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 1 Aug 2009 14:26:00 +0000 Subject: * Tweak the caps manager so that the NPCAvatar works again. --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 6850312..fa1fd89 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -538,7 +538,13 @@ namespace OpenSim.Region.Framework.Scenes public void AdjustKnownSeeds() { - Dictionary seeds = Scene.CapsModule.GetChildrenSeeds(UUID); + Dictionary seeds; + + if (Scene.CapsModule != null) + seeds = Scene.CapsModule.GetChildrenSeeds(UUID); + else + seeds = new Dictionary(); + List old = new List(); foreach (ulong handle in seeds.Keys) { @@ -552,7 +558,10 @@ namespace OpenSim.Region.Framework.Scenes } } DropOldNeighbours(old); - Scene.CapsModule.SetChildrenSeed(UUID, seeds); + + if (Scene.CapsModule != null) + Scene.CapsModule.SetChildrenSeed(UUID, seeds); + KnownRegions = seeds; //m_log.Debug(" ++++++++++AFTER+++++++++++++ "); //DumpKnownRegions(); -- cgit v1.1