diff options
author | Travis Howell | 2005-03-03 10:46:04 +0000 |
---|---|---|
committer | Travis Howell | 2005-03-03 10:46:04 +0000 |
commit | 14074de4b0e21e1fb33a77bf40ff7fcdb44c225e (patch) | |
tree | dbcd6ccd883831186c17b77668c4906419f186da /scumm | |
parent | c90a3b38cf60feb76af162ffc3cb4baa68195927 (diff) | |
download | scummvm-rg350-14074de4b0e21e1fb33a77bf40ff7fcdb44c225e.tar.gz scummvm-rg350-14074de4b0e21e1fb33a77bf40ff7fcdb44c225e.tar.bz2 scummvm-rg350-14074de4b0e21e1fb33a77bf40ff7fcdb44c225e.zip |
Correct classId value.
svn-id: r16985
Diffstat (limited to 'scumm')
-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)); } } |