From b546dfccc7a10b9daed580c7fd6b8a194a8de399 Mon Sep 17 00:00:00 2001 From: Krishty Date: Wed, 5 May 2021 13:14:25 +0200 Subject: [PATCH] fix for 0f3e6e2941f754014d5f9f12656a9e326fca61ed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Visual Studio’s Search All Files ignores ObjFileImporter.cpp and now I’m sure that’s a bug --- code/AssetLib/Obj/ObjFileImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetLib/Obj/ObjFileImporter.cpp b/code/AssetLib/Obj/ObjFileImporter.cpp index fa5a77ea6..b850b1a6a 100644 --- a/code/AssetLib/Obj/ObjFileImporter.cpp +++ b/code/AssetLib/Obj/ObjFileImporter.cpp @@ -90,7 +90,7 @@ ObjFileImporter::~ObjFileImporter() { // Returns true if file is an obj file. bool ObjFileImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*checkSig*/) const { static const char *tokens[] = { "mtllib", "usemtl", "v ", "vt ", "vn ", "o ", "g ", "s ", "f " }; - return BaseImporter::SearchFileHeaderForToken(pIOHandler, pFile, tokens, std::size(tokens), 200, false, true); + return BaseImporter::SearchFileHeaderForToken(pIOHandler, pFile, tokens, AI_COUNT_OF(tokens), 200, false, true); } // ------------------------------------------------------------------------------------------------