From 5379f74ab3224eddcfb2b68fb6ba4d45fb158d07 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 7 Mar 2005 21:58:47 +0000 Subject: Should be reverse order, sprite input works now. svn-id: r17030 --- scumm/sprite_he.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scumm') 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; -- cgit v1.2.3