Skip to content
Permalink
Browse files

DIRECTOR: Fix GCC Warnings.

  • Loading branch information
digitall committed Mar 20, 2017
1 parent 5a44168 commit bb252b428c4ca12886acb642b7dc9a3a9fcdefd2
Showing with 2 additions and 2 deletions.
  1. +1 −1 engines/director/lingo/lingo-builtins.cpp
  2. +1 −1 engines/director/score.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;
}
@@ -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;
}

0 comments on commit bb252b4

Please sign in to comment.
You can’t perform that action at this time.