From 078c1cd62148496ab0c8f3491684c85262bf5f0b Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Sun, 22 Apr 2012 22:59:15 +0000 Subject: [PATCH] # bugfix Importer::GetImporterIndex git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1236 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/Importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Importer.cpp b/code/Importer.cpp index 98353776d..7935ae862 100644 --- a/code/Importer.cpp +++ b/code/Importer.cpp @@ -865,7 +865,7 @@ size_t Importer::GetImporterIndex (const char* szExtension) const std::string ext(szExtension); if (ext.empty()) { - return NULL; + return static_cast(-1); } std::transform(ext.begin(),ext.end(), ext.begin(), tolower);