From 1d8a069e24eeb0c770275411a4be2e3eeb6ab30c Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 6 Jan 2019 22:14:42 +0200 Subject: GLK: ALAN2: Initialize game file name --- engines/glk/alan2/alan2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/glk') 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); -- cgit v1.2.3