diff options
author | diva | 2009-02-24 04:00:54 +0000 |
---|---|---|
committer | diva | 2009-02-24 04:00:54 +0000 |
commit | c31e2d598741ba4a92b0ca9f7d9ef90484497b09 (patch) | |
tree | 6c4d952b19425cc3fc766dae0e871290823f0710 /OpenSim/Client/MXP/MXPModule.cs | |
parent | Thank you kindly, TLaukkan (Tommil) for a patch that solves: (diff) | |
download | opensim-SC_OLD-c31e2d598741ba4a92b0ca9f7d9ef90484497b09.zip opensim-SC_OLD-c31e2d598741ba4a92b0ca9f7d9ef90484497b09.tar.gz opensim-SC_OLD-c31e2d598741ba4a92b0ca9f7d9ef90484497b09.tar.bz2 opensim-SC_OLD-c31e2d598741ba4a92b0ca9f7d9ef90484497b09.tar.xz |
Minor guard protecting against hackers like me who manipulate region UUIDs directly.
Diffstat (limited to 'OpenSim/Client/MXP/MXPModule.cs')
-rw-r--r-- | OpenSim/Client/MXP/MXPModule.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Client/MXP/MXPModule.cs b/OpenSim/Client/MXP/MXPModule.cs index 5873bf4..552c3b7 100644 --- a/OpenSim/Client/MXP/MXPModule.cs +++ b/OpenSim/Client/MXP/MXPModule.cs | |||
@@ -57,7 +57,8 @@ namespace OpenSim.Client.MXP | |||
57 | 57 | ||
58 | public void Initialise(Scene scene, IConfigSource source) | 58 | public void Initialise(Scene scene, IConfigSource source) |
59 | { | 59 | { |
60 | m_scenes.Add(scene.RegionInfo.RegionID, scene); | 60 | if (!m_scenes.ContainsKey(scene.RegionInfo.RegionID)) |
61 | m_scenes.Add(scene.RegionInfo.RegionID, scene); | ||
61 | config = source; | 62 | config = source; |
62 | } | 63 | } |
63 | 64 | ||