From 6a61468d0a6ce82a14a6327bcb9a031b6d05256e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 18 Mar 2018 22:05:05 -0400 Subject: [PATCH] XEEN: Fix Town Portal town selection dialog --- engines/xeen/dialogs/dialogs_spells.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp index abb2478587a..34d779944db 100644 --- a/engines/xeen/dialogs/dialogs_spells.cpp +++ b/engines/xeen/dialogs/dialogs_spells.cpp @@ -889,9 +889,9 @@ int TownPortal::execute() { // Build up a lsit of the names of the towns on the current side of Xeen for (int idx = 0; idx < 5; ++idx) { - File f(Common::String::format("%s%04d.txt", - map._sideTownPortal ? "dark" : "xeen", - Res.TOWN_MAP_NUMBERS[map._sideTownPortal][idx])); + Common::String txtName = Common::String::format("%s%04d.txt", map._sideTownPortal ? "dark" : "xeen", + Res.TOWN_MAP_NUMBERS[map._sideTownPortal][idx]); + File f(txtName, 1); townNames[idx] = f.readString(); f.close(); }