Bug fix in initialization of RegionAssetServer/MXP. Sometimes the MXP section in ini doesn't exist.

0.6.5-rc1
diva 2009-04-26 23:21:56 +00:00
parent ac3154e6b7
commit d95bfc8eec
1 changed files with 3 additions and 3 deletions

View File

@ -58,9 +58,9 @@ namespace OpenSim.Region.CoreModules.Framework.Services
m_scene = scene; m_scene = scene;
// This module is only on for standalones in hypergrid mode // This module is only on for standalones in hypergrid mode
enabled = (!config.Configs["Startup"].GetBoolean("gridmode", true)) && enabled = ((!config.Configs["Startup"].GetBoolean("gridmode", true)) &&
(config.Configs["Startup"].GetBoolean("hypergrid", true)|| config.Configs["Startup"].GetBoolean("hypergrid", true)) ||
config.Configs["MXP"].GetBoolean("Enabled", true)); ((config.Configs["MXP"] != null) && config.Configs["MXP"].GetBoolean("Enabled", true));
} }
} }