From baa480a3b30ea004a596a78f34667e5234834c0c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Emmanuel Zorg <zorgjeanbe@proton.me> Date: Sun, 30 Mar 2025 00:50:11 +0100 Subject: [PATCH] Fix a crash when the player somehow becomes invalid It's unclear what's causing it, but people have been reporting crashes in the wardrobe, so let's stay safe and protect against a possibly missing Player object. --- BondageClub/Screens/Character/Appearance/Appearance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BondageClub/Screens/Character/Appearance/Appearance.js b/BondageClub/Screens/Character/Appearance/Appearance.js index 96aef03ff0..8e548bfa2f 100644 --- a/BondageClub/Screens/Character/Appearance/Appearance.js +++ b/BondageClub/Screens/Character/Appearance/Appearance.js @@ -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"); } /**