Skip to content

Commit 6284ed0

Browse files
committed
Fix cannot convert bug
1 parent 66bf017 commit 6284ed0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/CleanCheat/RunnerBase.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ ABSTRACT class RunnerBase
5959
/// <summary>
6060
/// Register feature
6161
/// </summary>
62-
template <class T>
63-
bool RegisterFeature(FeatureBase<T>* feature)
62+
template <class T, class S = FeatureSettings>
63+
bool RegisterFeature(FeatureBase<T, S>* feature)
6464
{
6565
if (!feature->IsInitialized())
6666
return false;
6767

68-
_features.push_back(feature);
68+
_features.push_back(reinterpret_cast<FeatureBase<TType>*>(feature));
6969

7070
return true;
7171
}

0 commit comments

Comments
 (0)