diff options
Diffstat (limited to 'engines/kyra/script/script_eob.cpp')
-rw-r--r-- | engines/kyra/script/script_eob.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/kyra/script/script_eob.cpp b/engines/kyra/script/script_eob.cpp index cc3fc0a84f..c0c143bc4d 100644 --- a/engines/kyra/script/script_eob.cpp +++ b/engines/kyra/script/script_eob.cpp @@ -514,7 +514,7 @@ int EoBInfProcessor::oeob_moveInventoryItemToBlock(int8 *data) { } int EoBInfProcessor::oeob_printMessage_v1(int8 *data) { - static const uint8 amigaColorMap[16] = { 0x00, 0x06, 0x1d, 0x1b, 0x1a, 0x17, 0x18, 0x0e, 0x19, 0x1c, 0x1c, 0x1e, 0x13, 0x0a, 0x11, 0x1f }; + static const char amigaColorMap[16] = { 0x00, 0x06, 0x1d, 0x1b, 0x1a, 0x17, 0x18, 0x0e, 0x19, 0x1c, 0x1c, 0x1e, 0x13, 0x0a, 0x11, 0x1f }; static const char colorConfig[] = "\x6\x21\x2\x21"; char col[5]; int8 *pos = data; @@ -527,10 +527,10 @@ int EoBInfProcessor::oeob_printMessage_v1(int8 *data) { col[3] = *pos++; if (_vm->gameFlags().platform == Common::kPlatformAmiga) { - assert(col[1] < 16); - assert(col[3] < 16); - col[1] = amigaColorMap[col[1]]; - col[3] = amigaColorMap[col[3]]; + assert((uint8)col[1] < 16); + assert((uint8)col[3] < 16); + col[1] = amigaColorMap[(uint8)col[1]]; + col[3] = amigaColorMap[(uint8)col[3]]; } _vm->txt()->printMessage(col); |