aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel
diff options
context:
space:
mode:
authorStrangerke2015-09-14 00:23:07 +0200
committerStrangerke2015-09-14 00:23:07 +0200
commitdab5cd387dd10e7c75987bac97e974216806bba3 (patch)
tree9c9b18fb12a9700c1aaa9e883932ab9de1d03ff6 /engines/sherlock/scalpel
parent4ee421f29d1f6bdd2df2e1c7bea012aed5125a25 (diff)
downloadscummvm-rg350-dab5cd387dd10e7c75987bac97e974216806bba3.tar.gz
scummvm-rg350-dab5cd387dd10e7c75987bac97e974216806bba3.tar.bz2
scummvm-rg350-dab5cd387dd10e7c75987bac97e974216806bba3.zip
SHERLOCK: Reduce the scope of several variables.
Diffstat (limited to 'engines/sherlock/scalpel')
-rw-r--r--engines/sherlock/scalpel/scalpel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp
index affd0e956f..a76b73e109 100644
--- a/engines/sherlock/scalpel/scalpel.cpp
+++ b/engines/sherlock/scalpel/scalpel.cpp
@@ -1269,7 +1269,6 @@ bool ScalpelEngine::play3doMovie(const Common::String &filename, const Common::P
Graphics::Surface tempSurface;
Common::Point framePos(pos.x, pos.y);
- ImageFile3DO *frameImageFile = nullptr;
ImageFrame *frameImage = nullptr;
bool frameShown = false;
@@ -1286,7 +1285,7 @@ bool ScalpelEngine::play3doMovie(const Common::String &filename, const Common::P
framePos.y -= 8; // frame is 8 pixels on left + top, and 7 pixels on right + bottom
}
- frameImageFile = new ImageFile3DO("vidframe.cel", kImageFile3DOType_Cel);
+ ImageFile3DO *frameImageFile = new ImageFile3DO("vidframe.cel", kImageFile3DOType_Cel);
frameImage = &(*frameImageFile)[0];
}