XEEN: Fix Town Portal town selection dialog

This commit is contained in:
Paul Gilbert 2018-03-18 22:05:05 -04:00
parent d848c9a414
commit 6a61468d0a

View File

@ -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();
}