mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
implict bool
Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
This commit is contained in:
parent
42cf2b6377
commit
0e6cb8ab19
@ -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<int32_t>(idstr).value_or(-1);
|
||||
if (id != -1) entry.ids.push_back(id);
|
||||
const auto id = GeneralUtils::TryParse<int32_t>(idstr);
|
||||
if (id) entry.ids.push_back(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user