Skip to content

Commit

Permalink
563 IncrementalTreeMapSetting fixed missing braces
Browse files Browse the repository at this point in the history
  • Loading branch information
jschramm committed Aug 31, 2023
1 parent a24f9b3 commit b737823
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/SEE/Game/City/IncrementalTreeMapSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ public void Save(ConfigWriter writer, string label)

public bool Restore(Dictionary<string, object> attributes, string label)
{
if (!attributes.TryGetValue(label, out object dictionary)) return false;
if (!attributes.TryGetValue(label, out object dictionary))
{
return false;
}
Dictionary<string, object> values = dictionary as Dictionary<string, object>;
bool result = ConfigIO.Restore(values, LocalMovesDepthLabel, ref localMovesDepth);
result |= ConfigIO.Restore(values, LocalMovesBranchingLimitLabel, ref localMovesBranchingLimit);
Expand Down

0 comments on commit b737823

Please sign in to comment.