aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/StorageManager.cs19
1 files changed, 8 insertions, 11 deletions
diff --git a/OpenSim/Region/Environment/StorageManager.cs b/OpenSim/Region/Environment/StorageManager.cs
index 9f2730f..8f8ac97 100644
--- a/OpenSim/Region/Environment/StorageManager.cs
+++ b/OpenSim/Region/Environment/StorageManager.cs
@@ -38,20 +38,17 @@ namespace OpenSim.Region.Environment
38 { 38 {
39 if (pluginType.IsPublic) 39 if (pluginType.IsPublic)
40 { 40 {
41 if (!pluginType.IsAbstract) 41 Type typeInterface = pluginType.GetInterface("IRegionDataStore", true);
42 {
43 Type typeInterface = pluginType.GetInterface("IRegionDataStore", true);
44
45 if (typeInterface != null)
46 {
47 IRegionDataStore plug = (IRegionDataStore)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
48 plug.Initialise(dataStoreFile, dataStoreDB);
49 42
50 m_dataStore = plug; 43 if (typeInterface != null)
51 } 44 {
45 IRegionDataStore plug = (IRegionDataStore)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
46 plug.Initialise(dataStoreFile, dataStoreDB);
52 47
53 typeInterface = null; 48 m_dataStore = plug;
54 } 49 }
50
51 typeInterface = null;
55 } 52 }
56 } 53 }
57 54