diff options
Diffstat (limited to 'engines/sherlock/people.cpp')
-rw-r--r-- | engines/sherlock/people.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp index cc26339bde..d22c08f625 100644 --- a/engines/sherlock/people.cpp +++ b/engines/sherlock/people.cpp @@ -415,6 +415,7 @@ void People::setWalking() { * is being displayed, then the chraracter will always face down. */ void People::gotoStand(Sprite &sprite) { + Map &map = *_vm->_map; Scene &scene = *_vm->_scene; _walkTo.clear(); sprite._walkCount = 0; @@ -448,8 +449,8 @@ void People::gotoStand(Sprite &sprite) { if (_vm->_onChessboard) { sprite._sequenceNumber = 0; - _data[AL]._position.x = (_vm->_map[scene._charPoint].x - 6) * 100; - _data[AL]._position.y = (_vm->_map[scene._charPoint].x + 10) * 100; + _data[AL]._position.x = (map[scene._charPoint].x - 6) * 100; + _data[AL]._position.y = (map[scene._charPoint].x + 10) * 100; } _oldWalkSequence = -1; |