[Hotfix] Fix database loading routines (#4030)

This commit is contained in:
Chris Miles
2024-01-29 00:14:33 -06:00
committed by GitHub
parent 2e0ed82986
commit bc59882a65
5 changed files with 26 additions and 62 deletions
+1 -12
View File
@@ -887,10 +887,6 @@ bool SpawnConditionManager::LoadSpawnConditions(const std::string& zone_short_na
)
);
if (conditions.empty()) {
return false;
}
for (const auto& e : conditions) {
SpawnCondition c;
@@ -919,10 +915,7 @@ bool SpawnConditionManager::LoadSpawnConditions(const std::string& zone_short_na
)
);
if (condition_values.empty()) {
spawn_conditions.clear();
return false;
}
spawn_conditions.clear();
for (const auto& e : condition_values) {
auto i = spawn_conditions.find(e.id);
@@ -939,10 +932,6 @@ bool SpawnConditionManager::LoadSpawnConditions(const std::string& zone_short_na
)
);
if (events.empty()) {
return false;
}
LogInfo("Loaded [{}] spawn_events", Strings::Commify(std::to_string(events.size())));
for (const auto& e : events) {