SHERLOCK: Fix Scalpel bug when picking up paper

This commit is contained in:
Paul Gilbert 2015-06-07 18:24:43 -04:00
parent e3d6b25d57
commit e90c04b14f

View File

@ -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: