mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 18:24:59 +00:00
SHERLOCK: Fix Scalpel bug when picking up paper
This commit is contained in:
parent
e3d6b25d57
commit
e90c04b14f
@ -260,7 +260,8 @@ void Sprite::adjustSprite() {
|
||||
if (!map._active || (map._frameChangeFlag = !map._frameChangeFlag))
|
||||
++_frameNumber;
|
||||
|
||||
if (_walkSequences[_sequenceNumber][_frameNumber] == 0) {
|
||||
if (_frameNumber >= _walkSequences[_sequenceNumber]._sequences.size() ||
|
||||
_walkSequences[_sequenceNumber][_frameNumber] == 0) {
|
||||
switch (_sequenceNumber) {
|
||||
case Scalpel::STOP_UP:
|
||||
case Scalpel::STOP_DOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user