From ea986991874369f4b244676001f39767efdf4f32 Mon Sep 17 00:00:00 2001 From: QAston Date: Tue, 18 Aug 2009 18:47:20 +0200 Subject: *Fix a typo in xp bonus auras. --HG-- branch : trunk --- src/shared/Database/DBCFileLoader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/shared/Database/DBCFileLoader.cpp') 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; -- cgit v1.2.3