FUCK THAT SHIT

This commit is contained in:
Arisotura 2024-11-21 00:27:30 +01:00
parent 97a00e3137
commit dc10df0796
1 changed files with 2 additions and 1 deletions

View File

@ -632,7 +632,8 @@ void Table::SetString(const std::string& path, const std::string& val)
void Table::SetDouble(const std::string& path, double val) void Table::SetDouble(const std::string& path, double val)
{ {
toml::value& tval = ResolvePath(path); toml::value& tval = ResolvePath(path);
tval = toml::value(val, {.prec=10}); toml::floating_format_info info = {.prec=10};
tval = toml::value(val, info);
} }
toml::value& Table::ResolvePath(const std::string& path) toml::value& Table::ResolvePath(const std::string& path)