Fixed horde mod

This commit is contained in:
Andrej Stojkovikj committed 2026-10-18 00:19:27 +02:00
1 parent 9c123865bc
commit 9f4f8bf523
12 files changed
+14 -5

No files matched your search

+2 -2
View File
@@ -214,7 +214,7 @@ namespace Skopje.Horde
{
District = district,
Name = zone,
Override = config.Bind(section, "Override", false, (string)null),
Override = config.Bind(section, "Override", false, string.Empty),
};
for (int i = 0; i < Fields.Length; i++)
@@ -226,7 +226,7 @@ namespace Skopje.Horde
static void BindField(ConfigFile config, string section, FieldDef field, ZoneSettings zone, bool global)
{
// The explanation is written once, above the first global setting.
string description = global && field.Key == PopulationKey ? Explanation : null;
string description = global && field.Key == PopulationKey ? Explanation : string.Empty;
ConfigDescription configDescription = field.IsFloat
? new ConfigDescription(description, new AcceptableValueRange<float>(field.FloatMin, field.FloatMax))
: new ConfigDescription(description, new AcceptableValueRange<int>(field.IntMin, field.IntMax));