Silenced some warnings

svn-id: r44329
This commit is contained in:
Filippos Karapetis 2009-09-25 07:06:55 +00:00
parent 7106caca81
commit a74a9c6c01
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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) {