diff options
author | Michael Lutz <michi@icosahedron.de> | 2020-12-06 21:11:47 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-12-27 13:19:25 +0100 |
commit | 5cbb2da79434ec002831bd72b2c81f9dcd469601 (patch) | |
tree | a1b8fea79609c446e36a38796269dad6a1db45fd /src/game | |
parent | 65f65ad2ad8f029b99ef60e931b6d86952777610 (diff) | |
download | openttd-5cbb2da79434ec002831bd72b2c81f9dcd469601.tar.xz |
Codechange: Even more std::string usage in file IO.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/game_text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game_text.cpp b/src/game/game_text.cpp index 39732f789..f704dbc2e 100644 --- a/src/game/game_text.cpp +++ b/src/game/game_text.cpp @@ -66,7 +66,7 @@ void NORETURN CDECL strgen_fatal(const char *s, ...) LanguageStrings ReadRawLanguageStrings(const std::string &file) { size_t to_read; - FILE *fh = FioFOpenFile(file.c_str(), "rb", GAME_DIR, &to_read); + FILE *fh = FioFOpenFile(file, "rb", GAME_DIR, &to_read); if (fh == nullptr) return LanguageStrings(); FileCloser fhClose(fh); |