diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/lingo/lingo-builtins.cpp | 2 | ||||
-rw-r--r-- | engines/director/score.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-builtins.cpp b/engines/director/lingo/lingo-builtins.cpp index cb6a7d67ec..e12b20a3c2 100644 --- a/engines/director/lingo/lingo-builtins.cpp +++ b/engines/director/lingo/lingo-builtins.cpp @@ -1232,7 +1232,7 @@ void Lingo::b_rollOver(int nargs) { Frame *frame = g_director->getCurrentScore()->_frames[g_director->getCurrentScore()->getCurrentFrame()]; - if (arg >= frame->_sprites.size()) { + if (arg >= (int32) frame->_sprites.size()) { g_lingo->push(d); return; } diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 472bd739c5..4f19ba78f9 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -1166,7 +1166,7 @@ void Score::update() { } Sprite *Score::getSpriteById(uint16 id) { - if (_currentFrame >= _frames.size() || _currentFrame < 0 || id >= _frames[_currentFrame]->_sprites.size()) { + if (_currentFrame >= _frames.size() || id >= _frames[_currentFrame]->_sprites.size()) { warning("Score::getSpriteById(%d): out of bounds. frame: %d", id, _currentFrame); return nullptr; } |