diff --git a/src/TSMapEditor/Mutations/Classes/HeightMutations/AlterElevationMutationBase.cs b/src/TSMapEditor/Mutations/Classes/HeightMutations/AlterElevationMutationBase.cs index fbf35e54..7081446e 100644 --- a/src/TSMapEditor/Mutations/Classes/HeightMutations/AlterElevationMutationBase.cs +++ b/src/TSMapEditor/Mutations/Classes/HeightMutations/AlterElevationMutationBase.cs @@ -126,7 +126,7 @@ private void RefreshLighting() { var cellCoords = totalProcessedCells[i]; var cell = Map.GetTile(cellCoords); - cell.RefreshLighting(Map.Lighting, MutationTarget.LightingPreviewState); + cell?.RefreshLighting(Map.Lighting, MutationTarget.LightingPreviewState); } }