fix compiling

This commit is contained in:
Aaron Kimbre 2024-06-07 09:31:54 -05:00
parent 66cf96af1a
commit f6f3cdc3c0

View File

@ -10,8 +10,6 @@ CDDeletionRestriction CDDeletionRestrictionsTable::Default = {
};
void CDDeletionRestrictionsTable::LoadValuesFromDatabase() {
auto& entries = GetEntriesMutable();
auto tableData = CDClientDatabase::ExecuteQuery("SELECT * FROM DeletionRestrictions");
@ -25,7 +23,7 @@ void CDDeletionRestrictionsTable::LoadValuesFromDatabase() {
for (const auto& idstr : GeneralUtils::SplitString(raw_ids, ',')) {
if (!idstr.empty()) {
const auto id = GeneralUtils::TryParse<int32_t>(idstr);
if (id) entry.ids.push_back(id);
if (id) entry.ids.push_back(id.value());
}
}
}