fix(SpoofRank): Still using old settings file and causing crashes

This commit is contained in:
Yimura 2021-02-08 21:00:35 +01:00
parent 5f22dfd304
commit b74e1329fe
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -6,9 +6,11 @@ namespace big
{
void self::spoof_rank()
{
bool bSpoofRank = g_settings.options["spoof_rank"].get<bool>();
auto& spoofing = g_settings.options["spoofing"]["rank"];
bool bSpoofRank = spoofing["enabled"].get<bool>();
if (bSpoofRank)
func::spoof_rank(g_settings.options["rank"].get<int>());
func::spoof_rank(spoofing["value"].get<int>());
}
}