mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Fix bug that made getting the arousal zone for the ItemFeet group impossible
This commit is contained in:
parent
963097b98b
commit
0f1c0ac11d
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ function PreferenceGetArousalZone(C, ZoneName) {
|
|||
|
||||
// Finds the asset group and make sure the string contains it
|
||||
let Group = AssetGroupGet(C.AssetFamily, ZoneName);
|
||||
if (!Group?.ArousalZoneID || (C.ArousalSettings.Zone.length <= Group.ArousalZoneID)) return null;
|
||||
if (!Group || !CommonIsNonNegativeInteger(Group.ArousalZoneID) || (C.ArousalSettings.Zone.length <= Group.ArousalZoneID)) return null;
|
||||
|
||||
const Value = C.ArousalSettings.Zone.charCodeAt(Group.ArousalZoneID) - 100;
|
||||
let Factor = /** @type {ArousalFactor} */ (CommonClamp(Value, 0, 4));
|
||||
|
|
Loading…
Add table
Reference in a new issue