mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +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()) {
|
if (!raw_ids.empty()) {
|
||||||
for (const auto& idstr : GeneralUtils::SplitString(raw_ids, ',')) {
|
for (const auto& idstr : GeneralUtils::SplitString(raw_ids, ',')) {
|
||||||
if (!idstr.empty()) {
|
if (!idstr.empty()) {
|
||||||
const auto id = GeneralUtils::TryParse<int32_t>(idstr).value_or(-1);
|
const auto id = GeneralUtils::TryParse<int32_t>(idstr);
|
||||||
if (id != -1) entry.ids.push_back(id);
|
if (id) entry.ids.push_back(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user