[Hotfix] Fix issues where we're using the wrong database pointers

This commit is contained in:
Akkadius
2024-02-12 21:41:52 -06:00
parent 20cdc1e63d
commit c50100fcdb
8 changed files with 26 additions and 10 deletions
+2 -2
View File
@@ -440,14 +440,14 @@ bool ZoneDatabase::PopulateZoneSpawnList(uint32 zoneid, LinkedList<Spawn2*> &spa
std::unordered_map<uint32, uint32> spawn_times;
timeval tv;
timeval tv{};
gettimeofday(&tv, nullptr);
/* Bulk Load NPC Types Data into the cache */
content_db.LoadNPCTypesData(0, true);
const auto& l = RespawnTimesRepository::GetWhere(
*this,
database,
fmt::format(
"`instance_id` = {}",
zone->GetInstanceID()