Clarify related table in error message for unknown mangos string entries

This commit is contained in:
VladimirMangos 2010-07-29 16:08:35 +04:00
parent 50fc4b61e1
commit c6b52bf285

View file

@ -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>";