Skip to content

Commit

Permalink
Fix NullReferenceException when depth lod disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
daleeidd committed Dec 31, 2024
1 parent 022aec0 commit 473d1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crest/Assets/Crest/Crest/Scripts/OceanRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ void LateUpdateViewerHeight()
(
_viewerHeightAboveWaterSmooth,
ViewerHeightAboveWater,
_teleportTimerForHeightQueries > 0f || !_lodDataSeaDepths.Settings._allowVaryingWaterLevel ? 1f : 0.05f
_teleportTimerForHeightQueries > 0f || _lodDataSeaDepths == null || !_lodDataSeaDepths.Settings._allowVaryingWaterLevel ? 1f : 0.05f
);
}

Expand Down

0 comments on commit 473d1c3

Please sign in to comment.