*Fix a typo in xp bonus auras.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-18 18:47:20 +02:00
parent 84bb5022f5
commit ea98699187
6 changed files with 13 additions and 17 deletions

View File

@@ -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;

View File

@@ -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
{

View File

@@ -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();