diff options
author | Strangerke | 2014-08-11 23:05:48 +0200 |
---|---|---|
committer | Strangerke | 2014-08-11 23:05:48 +0200 |
commit | 69c7f989b12de26ada8d399233e95777421ee65b (patch) | |
tree | 14b1ec18e720f90dae84db2214ddb6859ecb7b59 | |
parent | 5344143027b87fa38203dbdd97f2f6fd68a566b2 (diff) | |
download | scummvm-rg350-69c7f989b12de26ada8d399233e95777421ee65b.tar.gz scummvm-rg350-69c7f989b12de26ada8d399233e95777421ee65b.tar.bz2 scummvm-rg350-69c7f989b12de26ada8d399233e95777421ee65b.zip |
ACCESS: Fix the implementation of cmdCheckAnim
-rw-r--r-- | engines/access/scripts.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index aa1bfcd71c..e7827fba01 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -238,11 +238,10 @@ void Scripts::cmdCheckAnim() { int id = _data->readUint16LE(); Animation *anim = _vm->_animation->findAnimation(id); - if (anim->_currentLoopCount == -1) { - _data->skip(2); + if (anim->_currentLoopCount == -1) cmdGoto(); - } else - _data->skip(4); + else + _data->skip(2); } void Scripts::CMDSND() { error("TODO"); } |