aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-14 11:58:28 -0400
committerPaul Gilbert2015-06-14 11:58:28 -0400
commit275064ad23a46d5c034c75201249511e6026556d (patch)
tree55fabaad05f48a77e40871eecf037cd30eaac379
parente3afaddea3769b60f85a9da5549e6b5f98d0104c (diff)
downloadscummvm-rg350-275064ad23a46d5c034c75201249511e6026556d.tar.gz
scummvm-rg350-275064ad23a46d5c034c75201249511e6026556d.tar.bz2
scummvm-rg350-275064ad23a46d5c034c75201249511e6026556d.zip
SHERLOCK: RT: Fix player movement whilst walking
-rw-r--r--engines/sherlock/tattoo/tattoo_people.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp
index a8c906a41a..3d472bc9d2 100644
--- a/engines/sherlock/tattoo/tattoo_people.cpp
+++ b/engines/sherlock/tattoo/tattoo_people.cpp
@@ -97,10 +97,12 @@ void TattooPerson::adjustSprite() {
if (!_walkCount) {
// If there are remaining points to walk, move to the next one
- people._walkDest = _walkTo.pop();
- setWalking();
- } else {
- gotoStand();
+ if (!_walkTo.empty()) {
+ people._walkDest = _walkTo.pop();
+ setWalking();
+ } else {
+ gotoStand();
+ }
}
}