diff --git a/scumm/intern.h b/scumm/intern.h index 7fff91482f4..7fac1d36e8d 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -875,7 +875,7 @@ protected: uint8 getWizPixelColor(int restype, int resnum, int state, int x, int y, int flags); int computeWizHistogram(int resnum, int state, int x, int y, int w, int h); - int findSpriteWithClassOf(int x, int y, int spriteGroup, int d, int num, int *args); + int findSpriteWithClassOf(int x, int y, int spriteGroupId, int d, int num, int *args); int spriteInfoGet_classFlags(int spriteId, int num); int spriteInfoGet_classFlagsAnd(int spriteId, int num, int *args); int spriteInfoGet_flags_13(int spriteId); diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp index 3210ed0e1ac..d60352406cc 100644 --- a/scumm/sprite_he.cpp +++ b/scumm/sprite_he.cpp @@ -38,16 +38,16 @@ void ScummEngine_v90he::allocateArrays() { // // spriteInfoGet functions // -int ScummEngine_v90he::findSpriteWithClassOf(int x, int y, int spriteGroup, int d, int num, int *args) { +int ScummEngine_v90he::findSpriteWithClassOf(int x, int y, int spriteGroupId, int d, int num, int *args) { int classId; - debug(1, "findSprite: x %d, y %d, spriteGroup %d, d %d, num %d", x, y, spriteGroup, d, num); + debug(1, "findSprite: x %d, y %d, spriteGroup %d, d %d, num %d", x, y, spriteGroupId, d, num); for (int i = 0; i < _numSpritesToProcess; ++i) { SpriteInfo *spi = _activeSpritesTable[i]; if (!spi->field_4C) continue; - if (spriteGroup && spi->group_num != spi->field_4C) + if (spriteGroupId && spi->group_num != spriteGroupId) continue; for (int j = 0; j < num; j++) {