diff --git a/SUWSF/GenericPatch.cpp b/SUWSF/GenericPatch.cpp index b453372..0131f75 100644 --- a/SUWSF/GenericPatch.cpp +++ b/SUWSF/GenericPatch.cpp @@ -8,6 +8,7 @@ #include #include "../external/tinyexpr/tinyexpr.h" #include "../external/Hooking.Patterns/Hooking.Patterns.h" +#include void GenericPatch::Init() { @@ -110,7 +111,7 @@ std::vector GenericPatch::GetConfigs() { boost::replace_all(config.val, "width", std::to_string(UserSettings::config.width)); boost::replace_all(config.val, "height", std::to_string(UserSettings::config.height)); - boost::replace_all(config.val, "aspectratio", std::to_string(UserSettings::config.aspectratio)); + boost::replace_all(config.val, "aspectratio", boost::lexical_cast(UserSettings::config.aspectratio)); int error = -1; double d = te_interp(config.val.c_str(), &error);