diff options
| author | Intel <chemicstry@gmail.com> | 2014-12-28 21:57:14 +0200 |
|---|---|---|
| committer | Intel <chemicstry@gmail.com> | 2014-12-28 21:57:14 +0200 |
| commit | 43fdf4cadaa72bff261bbc7bfc79f1284e254e7c (patch) | |
| tree | 001b7b782af823f93f1fd75cf2e64a944639f4ef /src/server/game/DataStores | |
| parent | 5c3762e1eeec4fb404a402d8f534084945ac4c43 (diff) | |
Core/Misc: Prevent crashing server with CMSG_TIME_SYNC_RESP and fixed some warnings
Diffstat (limited to 'src/server/game/DataStores')
| -rw-r--r-- | src/server/game/DataStores/DBCStores.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/DataStores/DBCStores.cpp b/src/server/game/DataStores/DBCStores.cpp index 6647fa08fc2..31d9cfa7e4e 100644 --- a/src/server/game/DataStores/DBCStores.cpp +++ b/src/server/game/DataStores/DBCStores.cpp @@ -248,7 +248,7 @@ inline void LoadDBC(uint32& availableDbcLocales, StoreProblemList& errors, DBCSt // compatibility format and C++ structure sizes ASSERT(DBCFileLoader::GetFormatRecordSize(storage.GetFormat()) == sizeof(T), "Size of '%s' set by format string (%u) not equal size of C++ structure (%u).", - filename.c_str(), DBCFileLoader::GetFormatRecordSize(storage.GetFormat()), sizeof(T)); + filename.c_str(), DBCFileLoader::GetFormatRecordSize(storage.GetFormat()), uint32(sizeof(T))); ++DBCFileCount; std::string dbcFilename = dbcPath + filename; @@ -296,7 +296,7 @@ inline void LoadGameTable(StoreProblemList& errors, std::string const& tableName // compatibility format and C++ structure sizes ASSERT(DBCFileLoader::GetFormatRecordSize(storage.GetFormat()) == sizeof(T), "Size of '%s' set by format string (%u) not equal size of C++ structure (%u).", - filename.c_str(), DBCFileLoader::GetFormatRecordSize(storage.GetFormat()), sizeof(T)); + filename.c_str(), DBCFileLoader::GetFormatRecordSize(storage.GetFormat()), uint32(sizeof(T))); ++DBCFileCount; std::string dbcFilename = dbcPath + filename; |
