Skip to content

Commit 20982fd

Browse files
committed
Prevent nullptr dereferencing for now
1 parent 560f0f1 commit 20982fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Source/Linter/Private/LintRules/LintRule_Level_LightingNeedsToRebuilt.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ bool ULintRule_Level_LightingNeedsToRebuilt::PassesRule(UObject* ObjectToLint, c
1919
bool ULintRule_Level_LightingNeedsToRebuilt::PassesRule_Internal_Implementation(UObject* ObjectToLint, const ULintRuleSet* ParentRuleSet, TArray<FLintRuleViolation>& OutRuleViolations) const {
2020
UWorld* World = CastChecked<UWorld>(ObjectToLint);
2121

22-
GetRendererModule().UpdateMapNeedsLightingFullyRebuiltState(World);
22+
// ToDo: Properly get the number of missing lighting builds
23+
// GetRendererModule().UpdateMapNeedsLightingFullyRebuiltState(World);
2324
if (World->NumLightingUnbuiltObjects > 0 || World->NumUnbuiltReflectionCaptures > 0) {
2425
const FText RecommendedAction = NSLOCTEXT("Linter", "LintRule_Level_LightingNeedsToRebuilt", "Rebuild the Lighting of {0}");
2526
OutRuleViolations.Push(

0 commit comments

Comments
 (0)