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

Strangerke Strangerke at scummvm.org
Wed Mar 22 21:46:51 CET 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:
c084e987d8 GNAP: Fix a warning in the PSP port


Commit: c084e987d8b3558d5f84f37712fa3bb36fef413f
    https://github.com/scummvm/scummvm/commit/c084e987d8b3558d5f84f37712fa3bb36fef413f
Author: Strangerke (strangerke at scummvm.org)
Date: 2017-03-22T21:44:21+01:00

Commit Message:
GNAP: Fix a warning in the PSP port

Changed paths:
    engines/gnap/gamesys.cpp


diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp
index c5f7e1b..04247c5 100644
--- a/engines/gnap/gamesys.cpp
+++ b/engines/gnap/gamesys.cpp
@@ -555,6 +555,7 @@ void GameSys::seqRemoveGfx(int sequenceId, int id) {
 bool GameSys::updateSequenceDuration(int sequenceId, int id, int *outDuration) {
 	bool found = false;
 	int duration = 0x7FFFFFFF;
+	*outDuration = 0;
 	for (int i = 0; i < _gfxItemsCount; ++i) {
 		GfxItem *gfxItem = &_gfxItems[i];
 		if (gfxItem->_sequenceId == sequenceId && gfxItem->_id == id) {
@@ -577,8 +578,10 @@ bool GameSys::updateSequenceDuration(int sequenceId, int id, int *outDuration) {
 			}
 		}
 	}
+
 	if (found)
 		*outDuration = duration;
+
 	return found;
 }
 





More information about the Scummvm-git-logs mailing list