Skip to content

Commit

Permalink
Fixed a minor warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
CloneDeath committed Aug 10, 2024
1 parent 694f4ff commit 0d846bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DemonCastle.Editor/Editors/Level/Area/View/LevelAreasView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ private void ReloadAreas() {
}

public void SelectArea(AreaInfo area) {
if (!_areaMap.ContainsKey(area)) return;
var areaView = _areaMap[area];
if (!_areaMap.TryGetValue(area, out var areaView)) return;
areaView.IsSelected = true;

var region = area.Region.ToPixelRegionInLevel();
Expand Down

0 comments on commit 0d846bf

Please sign in to comment.