aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/game
diff options
context:
space:
mode:
authorLittleboy2013-08-12 23:14:36 -0400
committerLittleboy2013-09-05 22:51:32 -0400
commit041aa50cb5f1fddf2efb6c65b232d051cce8b633 (patch)
tree7aacc724ac8e8fc6e35b38323360ba3f8dd1abcf /engines/lastexpress/game
parenta496ade05958afda3466c2dcc057b276152d05a1 (diff)
downloadscummvm-rg350-041aa50cb5f1fddf2efb6c65b232d051cce8b633.tar.gz
scummvm-rg350-041aa50cb5f1fddf2efb6c65b232d051cce8b633.tar.bz2
scummvm-rg350-041aa50cb5f1fddf2efb6c65b232d051cce8b633.zip
LASTEXPRESS: Remove unneeded check for loaded sequence (CID1003911)
The sequence loading helper should already check if the sequence is loaded and clean up the instance if not
Diffstat (limited to 'engines/lastexpress/game')
-rw-r--r--engines/lastexpress/game/scenes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lastexpress/game/scenes.cpp b/engines/lastexpress/game/scenes.cpp
index a2c7226b93..82688fff2e 100644
--- a/engines/lastexpress/game/scenes.cpp
+++ b/engines/lastexpress/game/scenes.cpp
@@ -587,8 +587,8 @@ void SceneManager::updateDoorsAndClock() {
Common::String name = Common::String::format("633X%c-%02d.seq", (index - firstIndex) + 65, scene->position);
Sequence *sequence = loadSequence1(name, 255);
- // If the sequence doesn't exists, skip
- if (!sequence || !sequence->isLoaded())
+ // If the sequence doesn't exists or could not be loaded, skip index
+ if (!sequence)
continue;
// Adjust frame data and store in frame list