summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-04-10 11:15:47 +0200
committerGitHub <noreply@github.com>2021-04-10 10:15:47 +0100
commitc64b0946e882ca6ff199834853696e3e0c239b04 (patch)
tree79a1abcf08b469f34908fe091b9e9ea0ca54a200
parentff6924f1222ade72feab10a9e9137e50fad9ea89 (diff)
downloadopenttd-c64b0946e882ca6ff199834853696e3e0c239b04.tar.xz
Fix e0561dbde: [MinGW] use ofstring(wchar_t*) as ofstring(wstring) doesn't exist (#8985)
-rw-r--r--src/ini.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ini.cpp b/src/ini.cpp
index a5045b715..017f5f903 100644
--- a/src/ini.cpp
+++ b/src/ini.cpp
@@ -53,7 +53,7 @@ bool IniFile::SaveToDisk(const std::string &filename)
std::string file_new{ filename };
file_new.append(".new");
- std::ofstream os(OTTD2FS(file_new));
+ std::ofstream os(OTTD2FS(file_new).c_str());
if (os.fail()) return false;
for (const IniGroup *group = this->group; group != nullptr; group = group->next) {