Skip to content

Commit

Permalink
SHERLOCK: Fix picking up Sarah's effects in Morgue
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 4, 2015
1 parent 8a9467b commit 034e138
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engines/sherlock/scene.cpp
Expand Up @@ -1386,7 +1386,11 @@ void Scene::doBgAnim() {

for (int idx = _canimShapes.size() - 1; idx >= 0; --idx) {
Object &o = _canimShapes[idx];
if (o._type == REMOVE) {

if (o._type == INVALID) {
// Anim shape was invalidated by checkEndOfSequence, so at this point we can remove it
_canimShapes.remove_at(idx);
} else if (o._type == REMOVE) {
if (_goToScene == -1)
screen.slamArea(o._position.x, o._position.y, o._delta.x, o._delta.y);

Expand Down

0 comments on commit 034e138

Please sign in to comment.