Codechange: Remove c_str, if std::string_view is already accepted.

This commit is contained in:
frosch
2025-04-30 12:38:02 +02:00
committed by frosch
parent b564fbb5e6
commit 36ce1f890a
7 changed files with 10 additions and 10 deletions

View File

@@ -1540,7 +1540,7 @@ bool GenerateLandscape(uint8_t mode)
if (mode == GWM_HEIGHTMAP) {
SetGeneratingWorldProgress(GWP_LANDSCAPE, steps + GLS_HEIGHTMAP);
if (!LoadHeightmap(_file_to_saveload.ftype.detailed, _file_to_saveload.name.c_str())) {
if (!LoadHeightmap(_file_to_saveload.ftype.detailed, _file_to_saveload.name)) {
return false;
}
IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);