Skip to content

Commit

Permalink
SCUMM: HE: Avoid erroring out on invalid control codes
Browse files Browse the repository at this point in the history
This now mirrors the original.
  • Loading branch information
AndywinXp committed Aug 12, 2024
1 parent 03d1631 commit 7832eb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/scumm/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ bool ScummEngine_v72he::handleNextCharsetCode(Actor *a, int *code) {
endLoop = endText = true;
break;
default:
error("handleNextCharsetCode: invalid code %d", c);
// Ignore the control code, reset the buffer position...
buffer--;
}
}
_charsetBufPos = buffer - _charsetBuffer;
Expand Down

0 comments on commit 7832eb4

Please sign in to comment.