diff options
-rw-r--r-- | scumm/sprite_he.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp index 1892ae2ebf..3cde530cb8 100644 --- a/scumm/sprite_he.cpp +++ b/scumm/sprite_he.cpp @@ -636,9 +636,9 @@ void ScummEngine_v90he::spriteInfoSet_setClassFlag(int spriteId, int classId, in checkRange(32, 1, classId, "class %d out of range in statement"); if (toggle) { - _spriteTable[spriteId].class_flags |= 1 << (classId - 1); + _spriteTable[spriteId].class_flags |= (1 << (classId)); } else { - _spriteTable[spriteId].class_flags &= ~(1 << (classId - 1)); + _spriteTable[spriteId].class_flags &= ~(1 << (classId)); } } |