Skip to content

Commit

Permalink
Fix crash when import over already defined brushes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Oct 9, 2024
1 parent 2f1bd8d commit 85a0e81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CentrED/UI/Windows/LandBrushManagerWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 85a0e81

Please sign in to comment.