mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 13:57:16 +00:00
Fix database connection pointer bucket consistency
This commit is contained in:
1 parent
66f89416d5
commit
450c748299
8 files changed
+14
-14
No files matched your search
+2
-2
@@ -309,7 +309,7 @@ NPC::NPC(const NPCType *npc_type_data, Spawn2 *in_respawn, const glm::vec4 &posi
|
||||
//give NPCs skill values...
|
||||
int r;
|
||||
for (r = 0; r <= EQ::skills::HIGHEST_SKILL; r++) {
|
||||
skills[r] = database.GetSkillCap(GetClass(), (EQ::skills::SkillType)r, moblevel);
|
||||
skills[r] = content_db.GetSkillCap(GetClass(), (EQ::skills::SkillType)r, moblevel);
|
||||
}
|
||||
// some overrides -- really we need to be able to set skills for mobs in the DB
|
||||
// There are some known low level SHM/BST pets that do not follow this, which supports
|
||||
@@ -3322,7 +3322,7 @@ void NPC::RecalculateSkills()
|
||||
{
|
||||
int r;
|
||||
for (r = 0; r <= EQ::skills::HIGHEST_SKILL; r++) {
|
||||
skills[r] = database.GetSkillCap(GetClass(), (EQ::skills::SkillType)r, level);
|
||||
skills[r] = content_db.GetSkillCap(GetClass(), (EQ::skills::SkillType)r, level);
|
||||
}
|
||||
|
||||
// some overrides -- really we need to be able to set skills for mobs in the DB
|
||||
|
||||
Reference in new issue
Block a user