Skip to content

Commit b951787

Browse files
Fix get value from property with reflection.
1 parent 3928cdc commit b951787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UI/Panels/MiscPanel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private void ToogleHighLods(bool areHighLodsOn){
123123
if (lodBias == null){
124124
Type qualitySettingsType = qualitySettings is Type type ? type : qualitySettings.GetActualType();
125125
lodBias = qualitySettingsType.GetProperty("lodBias");
126-
_defaultLodBias = (float)lodBias.GetValue(null);
126+
_defaultLodBias = (float)lodBias.GetValue(null, null);
127127
}
128128
lodBias.SetValue(null, areHighLodsOn ? 10000 : _defaultLodBias, null);
129129
}

0 commit comments

Comments
 (0)