aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk')
-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);