Skip to content

Commit

Permalink
Fix issue introduced in #36 where contracts that use tag no longer …
Browse files Browse the repository at this point in the history
…load
  • Loading branch information
siimav committed Jan 9, 2024
1 parent ffc675f commit e1fe56b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public override bool LoadFromConfig(ConfigNode configNode)

// Get type
string dummy = null;
valid &= ConfigNodeUtil.ParseValue<string>(configNode, "contractType", x => dummy = x, this, SetValues);
valid &= !string.IsNullOrEmpty(tag) || ConfigNodeUtil.ParseValue<string>(configNode, "contractType", x => dummy = x, this, SetValues);

valid &= ConfigNodeUtil.ParseValue<uint>(configNode, "minCount", x => minCount = x, this, 1);
valid &= ConfigNodeUtil.ParseValue<uint>(configNode, "maxCount", x => maxCount = x, this, UInt32.MaxValue);
Expand Down

0 comments on commit e1fe56b

Please sign in to comment.