diff options
-rw-r--r-- | engines/parallaction/parser_br.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/parallaction/parser_br.cpp b/engines/parallaction/parser_br.cpp index 8bb034986b..57153e0aec 100644 --- a/engines/parallaction/parser_br.cpp +++ b/engines/parallaction/parser_br.cpp @@ -447,7 +447,9 @@ DECLARE_LOCATION_PARSER(character) { DECLARE_LOCATION_PARSER(ifchar) { debugC(7, kDebugParser, "LOCATION_PARSER(ifchar) "); - _script->skip("ENDIF"); + if (scumm_stricmp(_vm->_char.getName(), _tokens[1])) { + _script->skip("ENDIF"); + } } |