mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
[Hotfix] Fix database loading routines (#4030)
This commit is contained in:
+1
-12
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user