aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-06 07:50:18 -0400
committerPaul Gilbert2017-09-06 07:50:18 -0400
commitb5408d72459905ab7684f40b179c507f9e86fe9c (patch)
treee54f70b5f12d37da008d3b0d6ade3f8becbbf23d /engines
parentaa3adfb4b12bcfac20aa3caf2d424a3d9e3e24fc (diff)
downloadscummvm-rg350-b5408d72459905ab7684f40b179c507f9e86fe9c.tar.gz
scummvm-rg350-b5408d72459905ab7684f40b179c507f9e86fe9c.tar.bz2
scummvm-rg350-b5408d72459905ab7684f40b179c507f9e86fe9c.zip
TITANIC: Fix specifying end frame in movie debugger command
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/debugger.cpp b/engines/titanic/debugger.cpp
index a8b580b636..5119f23c94 100644
--- a/engines/titanic/debugger.cpp
+++ b/engines/titanic/debugger.cpp
@@ -312,7 +312,7 @@ bool Debugger::cmdMovie(int argc, const char **argv) {
tester->playMovie(MOVIE_STOP_PREVIOUS);
} else {
uint startFrame = strToInt(argv[2]);
- uint endFrame = strToInt(argv[2]);
+ uint endFrame = (argc == 3) ? startFrame : strToInt(argv[3]);
tester->playMovie(startFrame, endFrame, MOVIE_STOP_PREVIOUS);
}