Codechange: Turn bit-stuffed FiosType enum into a struct. (#14019)

This commit is contained in:
frosch
2025-04-18 15:20:55 +02:00
committed by GitHub
parent b862d4937f
commit 26db4ccf09
13 changed files with 59 additions and 105 deletions
+1 -1
View File
@@ -997,7 +997,7 @@ static void _ShowGenerateLandscape(GenerateLandscapeWindowMode mode)
if (mode == GLWM_HEIGHTMAP) {
/* If the function returns negative, it means there was a problem loading the heightmap */
if (!GetHeightmapDimensions(_file_to_saveload.detail_ftype, _file_to_saveload.name.c_str(), &x, &y)) return;
if (!GetHeightmapDimensions(_file_to_saveload.ftype.detailed, _file_to_saveload.name.c_str(), &x, &y)) return;
}
WindowDesc &desc = (mode == GLWM_HEIGHTMAP) ? _heightmap_load_desc : _generate_landscape_desc;