diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 43d85c450..fae923bd3 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -2464,12 +2464,12 @@ bool NPC::AI_AddNPCSpells(uint32 iDBSpellsID) { AIautocastspell_timer->Disable(); return false; } - DBnpcspells_Struct* spell_list = database.GetNPCSpells(iDBSpellsID); + DBnpcspells_Struct* spell_list = content_db.GetNPCSpells(iDBSpellsID); if (!spell_list) { AIautocastspell_timer->Disable(); return false; } - DBnpcspells_Struct* parentlist = database.GetNPCSpells(spell_list->parent_list); + DBnpcspells_Struct* parentlist = content_db.GetNPCSpells(spell_list->parent_list); #if MobAI_DEBUG_Spells >= 10 std::string debug_msg = StringFormat("Loading NPCSpells onto %s: dbspellsid=%u, level=%u", this->GetName(), iDBSpellsID, this->GetLevel()); if (spell_list) { @@ -2636,13 +2636,13 @@ bool NPC::AI_AddNPCSpellsEffects(uint32 iDBSpellsEffectsID) { if (iDBSpellsEffectsID == 0) return false; - DBnpcspellseffects_Struct* spell_effects_list = database.GetNPCSpellsEffects(iDBSpellsEffectsID); + DBnpcspellseffects_Struct* spell_effects_list = content_db.GetNPCSpellsEffects(iDBSpellsEffectsID); if (!spell_effects_list) { return false; } - DBnpcspellseffects_Struct* parentlist = database.GetNPCSpellsEffects(spell_effects_list->parent_list); + DBnpcspellseffects_Struct* parentlist = content_db.GetNPCSpellsEffects(spell_effects_list->parent_list); uint32 i; #if MobAI_DEBUG_Spells >= 10 diff --git a/zone/npc_scale_manager.cpp b/zone/npc_scale_manager.cpp index ed65674fb..f9c98052d 100644 --- a/zone/npc_scale_manager.cpp +++ b/zone/npc_scale_manager.cpp @@ -166,7 +166,7 @@ void NpcScaleManager::ScaleNPC(NPC *npc) bool NpcScaleManager::LoadScaleData() { - auto results = database.QueryDatabase( + auto results = content_db.QueryDatabase( "SELECT " "type," "level," diff --git a/zone/zone.cpp b/zone/zone.cpp index 217dd6e4d..becf6312c 100755 --- a/zone/zone.cpp +++ b/zone/zone.cpp @@ -468,7 +468,7 @@ void Zone::LoadNewMerchantData(uint32 merchantid) { std::list merlist; std::string query = StringFormat("SELECT item, slot, faction_required, level_required, alt_currency_cost, " "classes_required, probability FROM merchantlist WHERE merchantid=%d ORDER BY slot", merchantid); - auto results = database.QueryDatabase(query); + auto results = content_db.QueryDatabase(query); if (!results.Success()) { return; } @@ -2311,7 +2311,7 @@ void Zone::LoadNPCEmotes(LinkedList* NPCEmoteList) NPCEmoteList->Clear(); const std::string query = "SELECT emoteid, event_, type, text FROM npc_emotes"; - auto results = database.QueryDatabase(query); + auto results = content_db.QueryDatabase(query); if (!results.Success()) { return; }