From c31e2d598741ba4a92b0ca9f7d9ef90484497b09 Mon Sep 17 00:00:00 2001 From: diva Date: Tue, 24 Feb 2009 04:00:54 +0000 Subject: [PATCH] Minor guard protecting against hackers like me who manipulate region UUIDs directly. --- OpenSim/Client/MXP/MXPModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Client/MXP/MXPModule.cs b/OpenSim/Client/MXP/MXPModule.cs index 5873bf4a94..552c3b7100 100644 --- a/OpenSim/Client/MXP/MXPModule.cs +++ b/OpenSim/Client/MXP/MXPModule.cs @@ -57,7 +57,8 @@ namespace OpenSim.Client.MXP public void Initialise(Scene scene, IConfigSource source) { - m_scenes.Add(scene.RegionInfo.RegionID, scene); + if (!m_scenes.ContainsKey(scene.RegionInfo.RegionID)) + m_scenes.Add(scene.RegionInfo.RegionID, scene); config = source; }