diff options
author | alberth <alberth@openttd.org> | 2016-09-04 12:57:43 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2016-09-04 12:57:43 +0000 |
commit | 597380e099688652e31fd1f406b53dee6b65da90 (patch) | |
tree | ac7bdedf8b7fd9d8f096465c3cbb1b41b40f1e78 /src/genworld_gui.cpp | |
parent | df9a9f074a55a839a5f311e5c0837342192e720d (diff) | |
download | openttd-597380e099688652e31fd1f406b53dee6b65da90.tar.xz |
(svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and DetailedFileType.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r-- | src/genworld_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 61e114311..359709e36 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -833,7 +833,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.name, &x, &y)) return; + if (!GetHeightmapDimensions(_file_to_saveload.detail_ftype, _file_to_saveload.name, &x, &y)) return; } WindowDesc *desc = (mode == GLWM_HEIGHTMAP) ? &_heightmap_load_desc : &_generate_landscape_desc; |