aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs b/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
index 74ae0dc..c66e639 100644
--- a/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
+++ b/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
@@ -115,14 +115,14 @@ namespace OpenSim.Region.Environment.Modules
115 115
116 private void ReadConfigAndPopulate(Scene scene, IConfig startupConfig, string config) 116 private void ReadConfigAndPopulate(Scene scene, IConfig startupConfig, string config)
117 { 117 {
118 if (config == "Startup") 118 if (config == "Startup" && startupConfig != null)
119 { 119 {
120 gridmode = startupConfig.GetBoolean("gridmode", false); 120 gridmode = startupConfig.GetBoolean("gridmode", false);
121 m_enabled = (startupConfig.GetString("economymodule", "BetaGridLikeMoneyModule") == "BetaGridLikeMoneyModule"); 121 m_enabled = (startupConfig.GetString("economymodule", "BetaGridLikeMoneyModule") == "BetaGridLikeMoneyModule");
122 } 122 }
123 123
124 if (config == "Economy") 124 if (config == "Economy" && startupConfig != null)
125 { 125 {
126 ObjectCapacity = startupConfig.GetInt("ObjectCapacity", 45000); 126 ObjectCapacity = startupConfig.GetInt("ObjectCapacity", 45000);
127 PriceEnergyUnit = startupConfig.GetInt("PriceEnergyUnit", 100); 127 PriceEnergyUnit = startupConfig.GetInt("PriceEnergyUnit", 100);
128 PriceObjectClaim = startupConfig.GetInt("PriceObjectClaim", 10); 128 PriceObjectClaim = startupConfig.GetInt("PriceObjectClaim", 10);