us static cast and enum

This commit is contained in:
Aaron Kimbre
2024-06-07 15:07:37 -05:00
parent f6f3cdc3c0
commit bf58cf85cc
2 changed files with 56 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ void CDDeletionRestrictionsTable::LoadValuesFromDatabase() {
}
}
}
entry.checkType = static_cast<eDeletionRestrictionsCheckType>(tableData.getIntField("checkType", 6)); // MAX
entry.checkType = static_cast<eDeletionRestrictionsCheckType>(tableData.getIntField("checkType", static_cast<int>(eDeletionRestrictionsCheckType::MAX)));
entries.insert(std::make_pair(entry.id, entry));
tableData.nextRow();