From b5408d72459905ab7684f40b179c507f9e86fe9c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 6 Sep 2017 07:50:18 -0400 Subject: TITANIC: Fix specifying end frame in movie debugger command --- engines/titanic/debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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); } -- cgit v1.2.3