From 85a0e813dc9938fb6ea39c83b9681e24683a9d97 Mon Sep 17 00:00:00 2001 From: kaczy Date: Wed, 9 Oct 2024 11:51:06 +0200 Subject: [PATCH] Fix crash when import over already defined brushes --- CentrED/UI/Windows/LandBrushManagerWindow.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CentrED/UI/Windows/LandBrushManagerWindow.cs b/CentrED/UI/Windows/LandBrushManagerWindow.cs index eac59df..f886b94 100644 --- a/CentrED/UI/Windows/LandBrushManagerWindow.cs +++ b/CentrED/UI/Windows/LandBrushManagerWindow.cs @@ -528,6 +528,8 @@ private void ImportLandBrush() } CEDGame.MapManager.InitLandBrushes(); ProfileManager.Save(); + _selectedLandBrushName = ProfileManager.ActiveProfile.LandBrush.Keys.FirstOrDefault(""); + _selectedTransitionBrushName = Selected?.Transitions.Keys.FirstOrDefault("") ?? ""; _importStatusText = "Import Successful"; } catch (Exception e)