aboutsummaryrefslogtreecommitdiff
path: root/src/common/DataStores/DBCFileLoader.h
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-01-25 12:39:19 +0100
committerTreeston <treeston.mmoc@gmail.com>2018-01-25 12:39:19 +0100
commit6c3c200cc52397b4b32ed76e676830e9f1d67d4c (patch)
treec321072ad1492d227dc4ff88ac5d4516a1ebe3d8 /src/common/DataStores/DBCFileLoader.h
parent6ce078d8e885f61ebdff3eb905e4cf6a2911da90 (diff)
Misc: assert -> ASSERT
Diffstat (limited to 'src/common/DataStores/DBCFileLoader.h')
-rw-r--r--src/common/DataStores/DBCFileLoader.h11
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);
}