From f34c18fb5417353c3b3de51220c9dce71787f0fc Mon Sep 17 00:00:00 2001 From: arcaniafr <56791020+arcaniafr@users.noreply.github.com> Date: Sat, 23 Jan 2021 12:11:16 +0100 Subject: Core/Misc: Fix loading error log in the LoadTrainers (#25916) --- src/server/game/Globals/ObjectMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3