mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[c12589] Use proper error files for missing string errors
This commit is contained in:
parent
39262d4e6a
commit
58ad20df80
3 changed files with 4 additions and 3 deletions
|
|
@ -7742,9 +7742,9 @@ const char* ObjectMgr::GetMangosString(int32 entry, int locale_idx) const
|
|||
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);
|
||||
sLog.outErrorEventAI("Entry %i not found in `creature_ai_texts` table.", entry);
|
||||
else
|
||||
sLog.outErrorDb("Mangos string entry %i not found in DB.", entry);
|
||||
sLog.outErrorScriptLib("String entry %i not found in Database.", entry);
|
||||
return "<error>";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ typedef UNORDERED_MAP < uint32/*(mapid,spawnMode) pair*/, CellObjectGuidsMap > M
|
|||
#define MAX_DB_SCRIPT_STRING_ID 2000010000
|
||||
#define MIN_CREATURE_AI_TEXT_STRING_ID (-1) // 'creature_ai_texts'
|
||||
#define MAX_CREATURE_AI_TEXT_STRING_ID (-1000000)
|
||||
// Anything below MAX_CREATURE_AI_TEXT_STRING_ID is handled by the external script lib
|
||||
|
||||
static_assert(MAX_DB_SCRIPT_STRING_ID < ACE_INT32_MAX, "Must scope with int32 range");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12588"
|
||||
#define REVISION_NR "12589"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue