diff options
Diffstat (limited to 'src/common/DataStores/DBCFileLoader.h')
-rw-r--r-- | src/common/DataStores/DBCFileLoader.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/common/DataStores/DBCFileLoader.h b/src/common/DataStores/DBCFileLoader.h index cdcb4a5c488..38bd77e0bc6 100644 --- a/src/common/DataStores/DBCFileLoader.h +++ b/src/common/DataStores/DBCFileLoader.h @@ -21,7 +21,6 @@ #include "Define.h" #include "Utilities/ByteConverter.h" -#include <cassert> enum DbcFieldFormat { @@ -51,29 +50,29 @@ class TC_COMMON_API DBCFileLoader public: float getFloat(size_t field) const { - assert(field < file.fieldCount); + ASSERT(field < file.fieldCount); float val = *reinterpret_cast<float*>(offset+file.GetOffset(field)); EndianConvert(val); return val; } uint32 getUInt(size_t field) const { - assert(field < file.fieldCount); + ASSERT(field < file.fieldCount); uint32 val = *reinterpret_cast<uint32*>(offset+file.GetOffset(field)); EndianConvert(val); return val; } uint8 getUInt8(size_t field) const { - assert(field < file.fieldCount); + ASSERT(field < file.fieldCount); return *reinterpret_cast<uint8*>(offset+file.GetOffset(field)); } const char *getString(size_t field) const { - assert(field < file.fieldCount); + ASSERT(field < file.fieldCount); size_t stringOffset = getUInt(field); - assert(stringOffset < file.stringSize); + ASSERT(stringOffset < file.stringSize); return reinterpret_cast<char*>(file.stringTable + stringOffset); } |