aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/charset.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index 45d4188f6b..1081aa2b98 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -24,7 +24,7 @@
#include "nut_renderer.h"
void CharsetRendererCommon::setCurID(byte id) {
- _vm->checkRange(_vm->_maxCharsets - 1, 0, _curId, "Printing with bad charset %d");
+ _vm->checkRange(_vm->_maxCharsets - 1, 0, id, "Printing with bad charset %d");
_curId = id;
@@ -39,7 +39,7 @@ void CharsetRendererCommon::setCurID(byte id) {
}
void CharsetRendererV3::setCurID(byte id) {
- _vm->checkRange(_vm->_maxCharsets - 1, 0, _curId, "Printing with bad charset %d");
+ _vm->checkRange(_vm->_maxCharsets - 1, 0, id, "Printing with bad charset %d");
_curId = id;