From be5f3a631931a3ec7f07c5e2168064d98d48698f Mon Sep 17 00:00:00 2001 From: Joseph-Eugene Winzer Date: Thu, 22 Jun 2017 19:09:43 +0200 Subject: SUPERNOVA: Fixes file name creation --- engines/supernova/supernova.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 6c29e57f39..c4911548c2 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -72,7 +72,7 @@ SupernovaEngine::SupernovaEngine(OSystem *syst) , _console(NULL) , _brightness(255) , _menuBrightness(255) - , _imageIndex(10) + , _imageIndex(0) , _sectionIndex(0) , _delay(33) , _gameRunning(true) @@ -218,7 +218,7 @@ void playSoundMod(int filenumber) void SupernovaEngine::renderImage(int filenumber, int section, bool fullscreen) { Common::File file; - if (!file.open(Common::String::format("msn_data.0%2d", filenumber))) { + if (!file.open(Common::String::format("msn_data.%03d", filenumber))) { error("File %s could not be read!", file.getName()); } -- cgit v1.2.3