[Fix] Always spawn zone controller first (#4669)

This commit is contained in:
Chris Miles authored and GitHub committed 2025-02-11 22:19:15 -05:00
1 parent 432452c5c7
commit 843f6531a7
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -498,6 +498,8 @@ bool ZoneDatabase::PopulateZoneSpawnList(uint32 zoneid, LinkedList<Spawn2*> &spa
);
}
NPC::SpawnZoneController();
for (auto &s: spawns) {
uint32 spawn_time_left = 0;
if (spawn_times.count(s.id) != 0) {
@@ -538,8 +540,6 @@ bool ZoneDatabase::PopulateZoneSpawnList(uint32 zoneid, LinkedList<Spawn2*> &spa
LogInfo("Loaded [{}] spawn2 entries", Strings::Commify(l.size()));
NPC::SpawnZoneController();
return true;
}