Oops! StringFormat wasn't suppose to make into final

This commit is contained in:
Uleat 2019-09-06 20:04:08 -04:00
parent fcaa685e77
commit 8673aec9fd

View File

@ -596,10 +596,10 @@ bool RuleManager::RestoreRuleNotes(Database *db)
}
std::string query(
StringFormat(
"UPDATE `rule_values` SET `notes` = '%s' WHERE `ruleset_id` = '%i' AND `rule_name` = '%s'",
rule.notes.c_str(),
atoi(row[0]),
fmt::format(
"UPDATE `rule_values` SET `notes` = '{}' WHERE `ruleset_id` = '{}' AND `rule_name` = '{}'",
EscapeString(rule.notes),
row[0],
row[1]
)
);