From 893740478c1276f511d007d32838d45366a977df Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 4 Oct 2015 17:20:49 +0200 Subject: [PATCH] Fix sporadic interrogate parser issue --- dtool/src/cppparser/cppPreprocessor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtool/src/cppparser/cppPreprocessor.cxx b/dtool/src/cppparser/cppPreprocessor.cxx index 4f6384e89d..decd7e30da 100644 --- a/dtool/src/cppparser/cppPreprocessor.cxx +++ b/dtool/src/cppparser/cppPreprocessor.cxx @@ -1469,7 +1469,7 @@ handle_include_directive(const string &args, int first_line, // Don't include it if we included it before and it had #pragma once. ParsedFiles::const_iterator it = _parsed_files.find(file); - if (it->_pragma_once) { + if (it != _parsed_files.end() && it->_pragma_once) { return; }