aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2
diff options
context:
space:
mode:
authorFilippos Karapetis2019-01-06 22:14:42 +0200
committerFilippos Karapetis2019-01-06 22:14:42 +0200
commit1d8a069e24eeb0c770275411a4be2e3eeb6ab30c (patch)
tree21b13de331a9d95ab43700c1f235134d5336b671 /engines/glk/alan2
parentaac5ed1cae3d83fb84b8179956f75f96fcc43763 (diff)
downloadscummvm-rg350-1d8a069e24eeb0c770275411a4be2e3eeb6ab30c.tar.gz
scummvm-rg350-1d8a069e24eeb0c770275411a4be2e3eeb6ab30c.tar.bz2
scummvm-rg350-1d8a069e24eeb0c770275411a4be2e3eeb6ab30c.zip
GLK: ALAN2: Initialize game file name
Diffstat (limited to 'engines/glk/alan2')
-rw-r--r--engines/glk/alan2/alan2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/glk/alan2/alan2.cpp b/engines/glk/alan2/alan2.cpp
index 60889f70a3..da9dbf1115 100644
--- a/engines/glk/alan2/alan2.cpp
+++ b/engines/glk/alan2/alan2.cpp
@@ -46,9 +46,10 @@ Alan2::Alan2(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, g
}
void Alan2::runGame() {
+ Common::String gameFileName = _gameFile.getName();
+
// TODO: Initialize these properly
int tmp = 0;
- Common::String gameFileName;
_decode = new Decode(nullptr, nullptr);
_execute = new Execute();
_saveLoad = new SaveLoad(gameFileName, nullptr, nullptr, nullptr, nullptr, &tmp);