summaryrefslogtreecommitdiff
path: root/src/ini_load.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-06 21:11:49 +0100
committerMichael Lutz <michi@icosahedron.de>2020-12-27 13:19:25 +0100
commit358056ec428d1938b8c9219a60c6fb400115f152 (patch)
tree428afbedb78158cd174f3c003c70ce3d45d1bea9 /src/ini_load.cpp
parent024a3f62593fd783285c5ff09b8c85ee1fc34e2d (diff)
downloadopenttd-358056ec428d1938b8c9219a60c6fb400115f152.tar.xz
Codechange: Keep filenames of loaded Fio files in std::strings.
Diffstat (limited to 'src/ini_load.cpp')
-rw-r--r--src/ini_load.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ini_load.cpp b/src/ini_load.cpp
index e7c2b95fe..022e2bf18 100644
--- a/src/ini_load.cpp
+++ b/src/ini_load.cpp
@@ -204,7 +204,7 @@ void IniLoadFile::LoadFromDisk(const std::string &filename, Subdirectory subdir)
uint comment_alloc = 0;
size_t end;
- FILE *in = this->OpenFile(filename.c_str(), subdir, &end);
+ FILE *in = this->OpenFile(filename, subdir, &end);
if (in == nullptr) return;
end += ftell(in);