diff options
author | QAston <none@none> | 2009-08-18 18:47:20 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-18 18:47:20 +0200 |
commit | ea986991874369f4b244676001f39767efdf4f32 (patch) | |
tree | 0aa455d75c6fca9f9d1305cbe2e07f5b82fcdd9e /src/shared/Database/DBCFileLoader.cpp | |
parent | 84bb5022f5bec20c34940a09ba25054625130afb (diff) |
*Fix a typo in xp bonus auras.
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Database/DBCFileLoader.cpp')
-rw-r--r-- | src/shared/Database/DBCFileLoader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/Database/DBCFileLoader.cpp b/src/shared/Database/DBCFileLoader.cpp index 23f602f5c93..dc968fbce3b 100644 --- a/src/shared/Database/DBCFileLoader.cpp +++ b/src/shared/Database/DBCFileLoader.cpp @@ -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; |