summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-06-14 23:17:58 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-15 06:13:00 +0200
commitd31a535c87a5dc9f2333ddb00a116109fed68ec8 (patch)
tree85682898aadd944c71d3c2563182f9a101f44945 /src/game
parent05005dcdfa4f2d0c8fe2e0f0a92103dccd4691ab (diff)
downloadopenttd-d31a535c87a5dc9f2333ddb00a116109fed68ec8.tar.xz
Cleanup: remove some unneeded c_str() calls
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game_text.cpp b/src/game/game_text.cpp
index 74e8d63bd..ca102f912 100644
--- a/src/game/game_text.cpp
+++ b/src/game/game_text.cpp
@@ -231,7 +231,7 @@ GameStrings *LoadTranslations()
basename.erase(e + 1);
std::string filename = basename + "lang" PATHSEP "english.txt";
- if (!FioCheckFileExists(filename.c_str() , GAME_DIR)) return nullptr;
+ if (!FioCheckFileExists(filename, GAME_DIR)) return nullptr;
auto ls = ReadRawLanguageStrings(filename);
if (!ls.IsValid()) return nullptr;