aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/script
diff options
context:
space:
mode:
authorathrxx2019-02-24 19:54:17 +0100
committerathrxx2019-03-06 20:48:24 +0100
commit94ab4c83527d9f7bcec97bf959899dc655f8ba66 (patch)
treedd1868c80d870adee6e930aeeebbc9763ed9e61c /engines/kyra/script
parentc6230ebbf5bc0a80e50a58e6652c828b75c83dcf (diff)
downloadscummvm-rg350-94ab4c83527d9f7bcec97bf959899dc655f8ba66.tar.gz
scummvm-rg350-94ab4c83527d9f7bcec97bf959899dc655f8ba66.tar.bz2
scummvm-rg350-94ab4c83527d9f7bcec97bf959899dc655f8ba66.zip
KYRA: (EOB1/Amiga) - fix warning
Diffstat (limited to 'engines/kyra/script')
-rw-r--r--engines/kyra/script/script_eob.cpp10
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);