* Fix a null reference when there's no [Economy] section in the opensim.ini
parent
9fec575b3e
commit
b92c6901ad
|
@ -115,13 +115,13 @@ namespace OpenSim.Region.Environment.Modules
|
|||
|
||||
private void ReadConfigAndPopulate(Scene scene, IConfig startupConfig, string config)
|
||||
{
|
||||
if (config == "Startup")
|
||||
if (config == "Startup" && startupConfig != null)
|
||||
{
|
||||
gridmode = startupConfig.GetBoolean("gridmode", false);
|
||||
m_enabled = (startupConfig.GetString("economymodule", "BetaGridLikeMoneyModule") == "BetaGridLikeMoneyModule");
|
||||
}
|
||||
|
||||
if (config == "Economy")
|
||||
if (config == "Economy" && startupConfig != null)
|
||||
{
|
||||
ObjectCapacity = startupConfig.GetInt("ObjectCapacity", 45000);
|
||||
PriceEnergyUnit = startupConfig.GetInt("PriceEnergyUnit", 100);
|
||||
|
|
Loading…
Reference in New Issue