mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
*Fix a typo in xp bonus auras.
--HG-- branch : trunk
This commit is contained in:
@@ -30,7 +30,7 @@ DBCFileLoader::DBCFileLoader()
|
||||
fieldsOffset = NULL;
|
||||
}
|
||||
|
||||
bool DBCFileLoader::Load(const char *filename, const char *fmt)
|
||||
bool DBCFileLoader::Load(const char *filename, const char *fmt, uint32 customEntriesCount)
|
||||
{
|
||||
|
||||
uint32 header;
|
||||
@@ -55,6 +55,8 @@ bool DBCFileLoader::Load(const char *filename, const char *fmt)
|
||||
|
||||
EndianConvert(recordCount);
|
||||
|
||||
recordCount += customEntriesCount;
|
||||
|
||||
if(fread(&fieldCount,4,1,f)!=1) // Number of fields
|
||||
return false;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class DBCFileLoader
|
||||
DBCFileLoader();
|
||||
~DBCFileLoader();
|
||||
|
||||
bool Load(const char *filename, const char *fmt);
|
||||
bool Load(const char *filename, const char *fmt, uint32 customEntriesCount = 0);
|
||||
|
||||
class Record
|
||||
{
|
||||
|
||||
@@ -34,11 +34,11 @@ class DBCStorage
|
||||
char const* GetFormat() const { return fmt; }
|
||||
uint32 GetFieldCount() const { return fieldCount; }
|
||||
|
||||
bool Load(char const* fn)
|
||||
bool Load(char const* fn, uint32 customEntriesCount = 0)
|
||||
{
|
||||
DBCFileLoader dbc;
|
||||
// Check if load was sucessful, only then continue
|
||||
if(!dbc.Load(fn, fmt))
|
||||
if(!dbc.Load(fn, fmt, customEntriesCount))
|
||||
return false;
|
||||
|
||||
fieldCount = dbc.GetCols();
|
||||
|
||||
Reference in New Issue
Block a user