diff options
author | Travis Howell | 2005-03-07 21:58:47 +0000 |
---|---|---|
committer | Travis Howell | 2005-03-07 21:58:47 +0000 |
commit | 5379f74ab3224eddcfb2b68fb6ba4d45fb158d07 (patch) | |
tree | 50901a19dab22aaadce73a37df84b2097a5d38dd /scumm | |
parent | 82d347a99adacbe517203add03083d1170dd3ac6 (diff) | |
download | scummvm-rg350-5379f74ab3224eddcfb2b68fb6ba4d45fb158d07.tar.gz scummvm-rg350-5379f74ab3224eddcfb2b68fb6ba4d45fb158d07.tar.bz2 scummvm-rg350-5379f74ab3224eddcfb2b68fb6ba4d45fb158d07.zip |
Should be reverse order, sprite input works now.
svn-id: r17030
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/sprite_he.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp index ba771d6f55..fbe493f43d 100644 --- a/scumm/sprite_he.cpp +++ b/scumm/sprite_he.cpp @@ -42,7 +42,7 @@ int ScummEngine_v90he::findSpriteWithClassOf(int x_pos, int y_pos, int spriteGro int code, classId, x, y; debug(1, "findSprite: x %d, y %d, spriteGroup %d, d %d, num %d", x_pos, y_pos, spriteGroupId, d, num); - for (int i = 0; i < _numSpritesToProcess; ++i) { + for (int i = (_numSpritesToProcess - 1); i >= 0; i--) { SpriteInfo *spi = _activeSpritesTable[i]; if (!spi->cur_res_id) continue; |