Merge branch 'fix/full-height-crash' into 'master'

Fix a crash when the player somehow becomes invalid

See merge request 
This commit is contained in:
BondageProjects 2025-03-31 00:00:03 +00:00
commit 6457aa6a51

View file

@ -595,7 +595,7 @@ function CharacterAppearanceSetHeightModifiers(C) {
}
// Set the height ratio here to avoid lookin it up when drawing. The setting can make all characters full height
C.HeightRatio = Player.CharacterID === "" || Player.VisualSettings.ForceFullHeight ? 1 : CharacterAppearanceGetCurrentValue(C, "Height", "Zoom");
C.HeightRatio = Player.VisualSettings?.ForceFullHeight ? 1 : CharacterAppearanceGetCurrentValue(C, "Height", "Zoom");
}
/**