[Scummvm-git-logs] scummvm master -> b5408d72459905ab7684f40b179c507f9e86fe9c

dreammaster dreammaster at scummvm.org
Wed Sep 6 13:50:28 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b5408d7245 TITANIC: Fix specifying end frame in movie debugger command


Commit: b5408d72459905ab7684f40b179c507f9e86fe9c
    https://github.com/scummvm/scummvm/commit/b5408d72459905ab7684f40b179c507f9e86fe9c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-09-06T07:50:18-04:00

Commit Message:
TITANIC: Fix specifying end frame in movie debugger command

Changed paths:
    engines/titanic/debugger.cpp


diff --git a/engines/titanic/debugger.cpp b/engines/titanic/debugger.cpp
index a8b580b..5119f23 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);
 	}
 





More information about the Scummvm-git-logs mailing list