summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2016-09-04 12:57:43 +0000
committeralberth <alberth@openttd.org>2016-09-04 12:57:43 +0000
commit597380e099688652e31fd1f406b53dee6b65da90 (patch)
treeac7bdedf8b7fd9d8f096465c3cbb1b41b40f1e78 /src/genworld_gui.cpp
parentdf9a9f074a55a839a5f311e5c0837342192e720d (diff)
downloadopenttd-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.cpp2
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;