Fix setting initialization

This commit is contained in:
amevarashi 2022-05-10 11:27:20 +05:00
parent 9389369ccb
commit 97ea6c68d4
2 changed files with 9 additions and 2 deletions

View file

@ -24,8 +24,8 @@ namespace RJWSexperience
private float maxSingleLustChange = MaxSingleLustChangeDefault;
private bool sexCanFillBuckets = SexCanFillBucketsDefault;
private bool selectionLocked = selectionLockedDefault;
private SettingsTabHistory history;
private SettingsTabDebug debug;
private SettingsTabHistory history = SettingsTabHistory.CreateDefault();
private SettingsTabDebug debug = new SettingsTabDebug();
//Public read-only properties
public float LustEffectPower => lustEffectPower;

View file

@ -41,6 +41,13 @@ namespace RJWSexperience.Settings
public float VirginRatio => virginRatio;
public bool SlavesBeenRapedExp => slavesBeenRapedExp;
public static SettingsTabHistory CreateDefault()
{
SettingsTabHistory history = new SettingsTabHistory();
history.Reset();
return history;
}
public void Reset()
{
enableRecordRandomizer = EnableStatRandomizerDefault;