aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-03-07 21:58:47 +0000
committerTravis Howell2005-03-07 21:58:47 +0000
commit5379f74ab3224eddcfb2b68fb6ba4d45fb158d07 (patch)
tree50901a19dab22aaadce73a37df84b2097a5d38dd
parent82d347a99adacbe517203add03083d1170dd3ac6 (diff)
downloadscummvm-rg350-5379f74ab3224eddcfb2b68fb6ba4d45fb158d07.tar.gz
scummvm-rg350-5379f74ab3224eddcfb2b68fb6ba4d45fb158d07.tar.bz2
scummvm-rg350-5379f74ab3224eddcfb2b68fb6ba4d45fb158d07.zip
Should be reverse order, sprite input works now.
svn-id: r17030
-rw-r--r--scumm/sprite_he.cpp2
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;