Browse Source

Fix sporadic interrogate parser issue

rdb 10 years ago
parent
commit
893740478c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtool/src/cppparser/cppPreprocessor.cxx

+ 1 - 1
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.
       // Don't include it if we included it before and it had #pragma once.
       ParsedFiles::const_iterator it = _parsed_files.find(file);
       ParsedFiles::const_iterator it = _parsed_files.find(file);
-      if (it->_pragma_once) {
+      if (it != _parsed_files.end() && it->_pragma_once) {
         return;
         return;
       }
       }