Skip to content

Commit 66bf017

Browse files
committed
Fix cannot convert bug
1 parent 421baa2 commit 66bf017

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/CleanCheat/FeatureBase.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ ABSTRACT class FeatureBase
6868
_init = true;
6969

7070
Settings = new TSettings();
71-
Settings->OnInit();
7271

73-
return OnInit(initData);
72+
return Settings->Init() && OnInit(initData);
7473
}
7574

7675
/// <summary>

src/CleanCheat/FeatureSettings.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,14 @@ class FeatureSettings
1212
virtual ~FeatureSettings() = default;
1313

1414
protected:
15-
virtual void OnInit() { }
15+
virtual bool OnInit()
16+
{
17+
return true;
18+
}
19+
20+
public:
21+
bool Init()
22+
{
23+
return OnInit();
24+
}
1625
};

0 commit comments

Comments
 (0)