fix(Core/ObjectMgr.cpp): Wrong format occurred (invalid format string) (#16168)
* fix(Core/ObjectMgr.cpp): Wrong format occurred (invalid format string) Wrong format occurred (invalid format string) * fix(Core/ObjectMgr.cpp): Wrong format occurred (invalid format string) * fix(Core/ObjectMgr.cpp): Wrong format occurred (invalid format string) Co-authored-by: Angelo Venturini <nefertum.dev@protonmail.com> --------- Co-authored-by: Angelo Venturini <nefertum.dev@protonmail.com>
This commit is contained in:
@@ -2885,7 +2885,7 @@ void ObjectMgr::LoadItemTemplates()
|
|||||||
}
|
}
|
||||||
if (itemTemplate.Material != dbcitem->Material)
|
if (itemTemplate.Material != dbcitem->Material)
|
||||||
{
|
{
|
||||||
LOG_ERROR("sql.sql", "Item (Entry: {%u}}) does not have a correct material ({}), must be {}.", entry, itemTemplate.Material, dbcitem->Material);
|
LOG_ERROR("sql.sql", "Item (Entry: {}) does not have a correct material ({}), must be {}.", entry, itemTemplate.Material, dbcitem->Material);
|
||||||
if (enforceDBCAttributes)
|
if (enforceDBCAttributes)
|
||||||
itemTemplate.Material = dbcitem->Material;
|
itemTemplate.Material = dbcitem->Material;
|
||||||
}
|
}
|
||||||
@@ -2897,7 +2897,7 @@ void ObjectMgr::LoadItemTemplates()
|
|||||||
}
|
}
|
||||||
if (itemTemplate.DisplayInfoID != dbcitem->DisplayInfoID)
|
if (itemTemplate.DisplayInfoID != dbcitem->DisplayInfoID)
|
||||||
{
|
{
|
||||||
LOG_ERROR("sql.sql", "Item (Entry: {%u}}) does not have a correct display id ({}), must be {}.", entry, itemTemplate.DisplayInfoID, dbcitem->DisplayInfoID);
|
LOG_ERROR("sql.sql", "Item (Entry: {}) does not have a correct display id ({}), must be {}.", entry, itemTemplate.DisplayInfoID, dbcitem->DisplayInfoID);
|
||||||
if (enforceDBCAttributes)
|
if (enforceDBCAttributes)
|
||||||
itemTemplate.DisplayInfoID = dbcitem->DisplayInfoID;
|
itemTemplate.DisplayInfoID = dbcitem->DisplayInfoID;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user