diff --git a/engines/draci/screen.cpp b/engines/draci/screen.cpp index 781147806f7..dbdbf157017 100644 --- a/engines/draci/screen.cpp +++ b/engines/draci/screen.cpp @@ -66,7 +66,7 @@ void Screen::setPalette(byte *data, uint16 start, uint16 num) { pal.seek(start * 4); // Copy the palette - for (unsigned int i = start; i < start + num; ++i) { + for (uint16 i = start; i < start + num; ++i) { _palette[i * 4] = pal.readByte(); _palette[i * 4 + 1] = pal.readByte(); _palette[i * 4 + 2] = pal.readByte(); diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp index db5cb80a200..9160b92c18a 100644 --- a/engines/draci/script.cpp +++ b/engines/draci/script.cpp @@ -219,7 +219,7 @@ int Script::funcRandom(int n) { } int Script::funcAtBegin(int yesno) { - return _vm->_game->isDialogueBegin() == yesno; + return _vm->_game->isDialogueBegin() == (bool)yesno; } int Script::funcLastBlock(int blockID) {