aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarcaniafr <56791020+arcaniafr@users.noreply.github.com>2021-01-23 12:11:16 +0100
committerGitHub <noreply@github.com>2021-01-23 12:11:16 +0100
commitf34c18fb5417353c3b3de51220c9dce71787f0fc (patch)
treebf3790fda5e5e811d305a7e10014191a1bc01fec /src
parente08910deaf224557102b4ec93972347bb7a3ea16 (diff)
Core/Misc: Fix loading error log in the LoadTrainers (#25916)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 4924e069f1c..c8073eff151 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -8910,7 +8910,7 @@ void ObjectMgr::LoadTrainers()
if (spell.ReqSkillLine && !sSkillLineStore.LookupEntry(spell.ReqSkillLine))
{
TC_LOG_ERROR("sql.sql", "Table `trainer_spell` references non-existing skill (ReqSkillLine: %u) for TrainerId %u and SpellId %u, ignoring",
- spell.ReqSkillLine, spell.SpellId, trainerId);
+ spell.ReqSkillLine, trainerId, spell.SpellId);
continue;
}
@@ -8921,7 +8921,7 @@ void ObjectMgr::LoadTrainers()
if (requiredSpell && !sSpellMgr->GetSpellInfo(requiredSpell, DIFFICULTY_NONE))
{
TC_LOG_ERROR("sql.sql", "Table `trainer_spell` references non-existing spell (ReqAbility" SZFMTD ": %u) for TrainerId %u and SpellId %u, ignoring",
- i + 1, requiredSpell, spell.SpellId, trainerId);
+ i + 1, requiredSpell, trainerId, spell.SpellId);
allReqValid = false;
}
}