diff options
Diffstat (limited to 'scumm/sprite_he.cpp')
-rw-r--r-- | scumm/sprite_he.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp index 9b51d75a2a..8dbf90f5f8 100644 --- a/scumm/sprite_he.cpp +++ b/scumm/sprite_he.cpp @@ -517,7 +517,13 @@ void ScummEngine_v90he::spriteInfoSet_field_78_64(int spriteId, int value) { _spriteTable[spriteId].field_64 = value; } -void ScummEngine_v90he::spriteInfoSet_setClassFlags(int spriteId, int classId, int toggle) { +void ScummEngine_v90he::spriteInfoSet_setClassFlags(int spriteId, int value) { + checkRange(_varNumSprites, 1, spriteId, "Invalid sprite %d"); + + _spriteTable[spriteId].class_flags = value; +} + +void ScummEngine_v90he::spriteInfoSet_setClassFlag(int spriteId, int classId, int toggle) { checkRange(_varNumSprites, 1, spriteId, "Invalid sprite %d"); checkRange(32, 1, classId, "class %d out of range in statement"); |