HE80+ games store current charset numberin VAR80.
Fixes crash in bb2demo. svn-id: r17885
This commit is contained in:
parent
e3b906b569
commit
ae14f7049e
4 changed files with 7 additions and 0 deletions
|
@ -757,6 +757,10 @@ void ScummEngine::initCharset(int charsetno) {
|
|||
|
||||
for (i = 0; i < 16; i++)
|
||||
_charsetColorMap[i] = _charsetData[charsetno][i];
|
||||
|
||||
if (_heversion >= 80) {
|
||||
VAR(VAR_CURRENT_CHARSET) = charsetno;
|
||||
}
|
||||
}
|
||||
|
||||
void ScummEngine_v6::enqueueText(const byte *text, int x, int y, byte color, byte charset, bool center) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue