aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2017-03-22 21:44:21 +0100
committerStrangerke2017-03-22 21:44:21 +0100
commitc084e987d8b3558d5f84f37712fa3bb36fef413f (patch)
tree230248fc4e5df624cee8878d6d5bebc7ef6d268a
parent26199eba381e0c523bf20846a6493229b1ef497d (diff)
downloadscummvm-rg350-c084e987d8b3558d5f84f37712fa3bb36fef413f.tar.gz
scummvm-rg350-c084e987d8b3558d5f84f37712fa3bb36fef413f.tar.bz2
scummvm-rg350-c084e987d8b3558d5f84f37712fa3bb36fef413f.zip
GNAP: Fix a warning in the PSP port
-rw-r--r--engines/gnap/gamesys.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp
index c5f7e1b9c5..04247c5d46 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;
}