From 041aa50cb5f1fddf2efb6c65b232d051cce8b633 Mon Sep 17 00:00:00 2001 From: Littleboy Date: Mon, 12 Aug 2013 23:14:36 -0400 Subject: 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 --- engines/lastexpress/game/scenes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/lastexpress/game') 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 -- cgit v1.2.3