replaced std::size() with AI_COUNT_OF for pre-C++20 compilers
This commit is contained in:
@@ -351,7 +351,7 @@ MD3Importer::~MD3Importer() {}
|
||||
// Returns whether the class can handle the format of the given file.
|
||||
bool MD3Importer::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*checkSig*/) const {
|
||||
static const uint32_t tokens[] = { AI_MD3_MAGIC_NUMBER_LE };
|
||||
return CheckMagicToken(pIOHandler, pFile, tokens, std::size(tokens));
|
||||
return CheckMagicToken(pIOHandler, pFile, tokens, AI_COUNT_OF(tokens));
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user