mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10711] Check localization data for existance main table entres.
Data will skipped for nonexistent entries, and reported with disabled LogFilter_DbStrictedCheck filter.
This commit is contained in:
parent
24eb9ec87a
commit
534ff29f15
8 changed files with 118 additions and 54 deletions
|
|
@ -706,7 +706,7 @@ bool ChatHandler::HandleSetValueHelper(Object* target, uint32 field, char* typeS
|
|||
{
|
||||
ObjectGuid guid = target->GetObjectGuid();
|
||||
|
||||
// not allow access to not existed or critical for work field
|
||||
// not allow access to nonexistent or critical for work field
|
||||
if (field >= target->GetValuesCount() || field <= OBJECT_FIELD_ENTRY)
|
||||
{
|
||||
PSendSysMessage(LANG_TOO_BIG_INDEX, field, guid.GetString().c_str(), target->GetValuesCount());
|
||||
|
|
@ -909,7 +909,7 @@ bool ChatHandler::HandlerDebugModValueHelper( Object* target, uint32 field, char
|
|||
{
|
||||
ObjectGuid guid = target->GetObjectGuid();
|
||||
|
||||
// not allow access to not existed or critical for work field
|
||||
// not allow access to nonexistent or critical for work field
|
||||
if (field >= target->GetValuesCount() || field <= OBJECT_FIELD_ENTRY)
|
||||
{
|
||||
PSendSysMessage(LANG_TOO_BIG_INDEX, field, guid.GetString().c_str(), target->GetValuesCount());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue