From 0e6cb8ab19806c2fe81ef5715ea8fb74983baf66 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Thu, 6 Jun 2024 21:34:10 -0500 Subject: [PATCH] implict bool Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> --- .../CDClientTables/CDDeletionRestrictionsTable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp b/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp index 2da36b62..ad7f90d8 100644 --- a/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp +++ b/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp @@ -24,8 +24,8 @@ void CDDeletionRestrictionsTable::LoadValuesFromDatabase() { if (!raw_ids.empty()) { for (const auto& idstr : GeneralUtils::SplitString(raw_ids, ',')) { if (!idstr.empty()) { - const auto id = GeneralUtils::TryParse(idstr).value_or(-1); - if (id != -1) entry.ids.push_back(id); + const auto id = GeneralUtils::TryParse(idstr); + if (id) entry.ids.push_back(id); } } }