aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-04-08 12:05:15 +0000
committerTravis Howell2005-04-08 12:05:15 +0000
commit3efdccee3718400fe32d7006b1673c439fa65195 (patch)
treea080dd7eb7e8eca4429ad27987043c6f7761035e
parent2a5aaf9fc2154ed58421a873fec94de3afdacfa0 (diff)
downloadscummvm-rg350-3efdccee3718400fe32d7006b1673c439fa65195.tar.gz
scummvm-rg350-3efdccee3718400fe32d7006b1673c439fa65195.tar.bz2
scummvm-rg350-3efdccee3718400fe32d7006b1673c439fa65195.zip
Ooops
svn-id: r17451
-rw-r--r--scumm/sprite_he.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index 0f5bf08abe..d6c7b6ff62 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -426,8 +426,10 @@ int ScummEngine_v90he::spriteGroupGet_allocateGroupSpritesList(int spriteGroupId
numSprites = 1;
for (i = (_varNumSprites - 1); i > 0; i--) {
- if (_spriteTable[i].groupNum == spriteGroupId)
+ if (_spriteTable[i].groupNum == spriteGroupId) {
writeArray(0, 0, numSprites, i);
+ numSprites++;
+ }
}
return readVar(0);