move try_to_int64 to StrUtil

This commit is contained in:
Megamouse 2021-06-19 12:40:59 +02:00 committed by Ivan
parent f4bcf9ad1d
commit 2c2003aa5b
4 changed files with 10 additions and 10 deletions

View file

@ -10,7 +10,7 @@ bool cheat_info::from_str(const std::string& cheat_line)
auto cheat_vec = fmt::split(cheat_line, {"@@@"}, false);
s64 val64 = 0;
if (cheat_vec.size() != 5 || !cfg::try_to_int64(&val64, cheat_vec[2], 0, cheat_type_max - 1))
if (cheat_vec.size() != 5 || !try_to_int64(&val64, cheat_vec[2], 0, cheat_type_max - 1))
{
log_cheat.fatal("Failed to parse cheat line");
return false;