mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Clarify related table in error message for unknown mangos string entries
This commit is contained in:
parent
50fc4b61e1
commit
c6b52bf285
1 changed files with 5 additions and 1 deletions
|
|
@ -7566,8 +7566,12 @@ const char *ObjectMgr::GetMangosString(int32 entry, int locale_idx) const
|
|||
return msl->Content[0].c_str();
|
||||
}
|
||||
|
||||
if(entry > 0)
|
||||
if(entry > MIN_DB_SCRIPT_STRING_ID)
|
||||
sLog.outErrorDb("Entry %i not found in `db_script_string` table.",entry);
|
||||
else if(entry > 0)
|
||||
sLog.outErrorDb("Entry %i not found in `mangos_string` table.",entry);
|
||||
else if(entry > MAX_CREATURE_AI_TEXT_STRING_ID)
|
||||
sLog.outErrorDb("Entry %i not found in `creature_ai_texts` table.",entry);
|
||||
else
|
||||
sLog.outErrorDb("Mangos string entry %i not found in DB.",entry);
|
||||
return "<error>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue