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);