mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/DataStores: Removed the need to edit DB2Metadata automatically generated to account for non-localized string fields
This commit is contained in:
@@ -89,17 +89,6 @@ uint32 DB2Meta::GetDbFieldCount() const
|
||||
return fields;
|
||||
}
|
||||
|
||||
uint32 DB2Meta::GetStringFieldCount(bool localizedOnly) const
|
||||
{
|
||||
uint32 stringFields = 0;
|
||||
for (uint32 i = 0; i < FieldCount; ++i)
|
||||
if (Types[i] == FT_STRING || (Types[i] == FT_STRING_NOT_LOCALIZED && !localizedOnly))
|
||||
for (uint8 j = 0; j < ArraySizes[i]; ++j)
|
||||
++stringFields;
|
||||
|
||||
return stringFields;
|
||||
}
|
||||
|
||||
DB2FieldMeta::DB2FieldMeta(bool isSigned, DBCFormer type, char const* name)
|
||||
: IsSigned(isSigned), Type(type), Name(name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user