[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
+1 -1
View File
@@ -318,7 +318,7 @@ int main(int argc, char **argv)
}
/* Guilds */
guild_mgr.SetDatabase(&database);
guild_mgr.SetDatabase(&database)->SetContentDatabase(&content_db);
GuildBanks = nullptr;
#ifdef _EQDEBUG
+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()