diff --git a/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp b/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp index 8591818e..77fb1a48 100644 --- a/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp +++ b/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp @@ -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(idstr); - if (id) entry.ids.push_back(id); + if (id) entry.ids.push_back(id.value()); } } }