diff options
author | Paul Gilbert | 2018-03-18 22:05:05 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-18 22:05:05 -0400 |
commit | 6a61468d0a6ce82a14a6327bcb9a031b6d05256e (patch) | |
tree | 7cc15c463de6f987ef7ce58737a6c380a7670514 /engines/xeen/dialogs/dialogs_spells.cpp | |
parent | d848c9a4144b1485c8298196be6c2e1c0540649a (diff) | |
download | scummvm-rg350-6a61468d0a6ce82a14a6327bcb9a031b6d05256e.tar.gz scummvm-rg350-6a61468d0a6ce82a14a6327bcb9a031b6d05256e.tar.bz2 scummvm-rg350-6a61468d0a6ce82a14a6327bcb9a031b6d05256e.zip |
XEEN: Fix Town Portal town selection dialog
Diffstat (limited to 'engines/xeen/dialogs/dialogs_spells.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_spells.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp index abb2478587..34d779944d 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(); } |