From b7378235fbf92850588ec57c3d61073129f9d3f5 Mon Sep 17 00:00:00 2001 From: jschramm Date: Thu, 31 Aug 2023 10:00:12 +0200 Subject: [PATCH] 563 IncrementalTreeMapSetting fixed missing braces --- Assets/SEE/Game/City/IncrementalTreeMapSetting.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/SEE/Game/City/IncrementalTreeMapSetting.cs b/Assets/SEE/Game/City/IncrementalTreeMapSetting.cs index 4607a5f74e..7c7fdd8a9d 100644 --- a/Assets/SEE/Game/City/IncrementalTreeMapSetting.cs +++ b/Assets/SEE/Game/City/IncrementalTreeMapSetting.cs @@ -95,7 +95,10 @@ public void Save(ConfigWriter writer, string label) public bool Restore(Dictionary attributes, string label) { - if (!attributes.TryGetValue(label, out object dictionary)) return false; + if (!attributes.TryGetValue(label, out object dictionary)) + { + return false; + } Dictionary values = dictionary as Dictionary; bool result = ConfigIO.Restore(values, LocalMovesDepthLabel, ref localMovesDepth); result |= ConfigIO.Restore(values, LocalMovesBranchingLimitLabel, ref localMovesBranchingLimit);