Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

DB/Error: Change error messages per aokromes request

  • Loading branch information...
commit 70829288ba034d8b5d4c91ee1500c419d35e74be 1 parent 1ae8472
@kandera kandera authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/game/Globals/ObjectMgr.cpp
View
4 src/server/game/Globals/ObjectMgr.cpp
@@ -7944,13 +7944,13 @@ void ObjectMgr::AddSpellToTrainer(uint32 entry, uint32 spell, uint32 spellCost,
CreatureTemplate const* cInfo = GetCreatureTemplate(entry);
if (!cInfo)
{
- sLog->outError(LOG_FILTER_SQL, "Table `npc_trainer` contains an entry for a non-existing creature template (Entry: %u), ignoring", entry);
+ sLog->outError(LOG_FILTER_SQL, "Table `npc_trainer` contains entries for a non-existing creature template (Entry: %u), ignoring", entry);
return;
}
if (!(cInfo->npcflag & UNIT_NPC_FLAG_TRAINER))
{
- sLog->outError(LOG_FILTER_SQL, "Table `npc_trainer` contains an entry for a creature template (Entry: %u) without trainer flag, ignoring", entry);
+ sLog->outError(LOG_FILTER_SQL, "Table `npc_trainer` contains entries for a creature template (Entry: %u) without trainer flag, ignoring", entry);
return;
}

3 comments on commit 7082928

@boomy

What exactly was wrong with the old error message?

@killradio

@boomy table npc_trainer have -- PRIMARY KEY (entry,spell) it means that can be many combinations for single npc entry, but still w/e its more for debug purposes.

@boomy

Welcome back :),

thanks for your reply @killradio , I may was just to lazy to look this up :P

Please sign in to comment.
Something went wrong with that request. Please try again.