summaryrefslogtreecommitdiff
path: root/src/landscape.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/landscape.cpp
parentdf9a9f074a55a839a5f311e5c0837342192e720d (diff)
downloadopenttd-597380e099688652e31fd1f406b53dee6b65da90.tar.xz
(svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and DetailedFileType.
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r--src/landscape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index d2b1b98cd..185e84a80 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -1222,7 +1222,7 @@ void GenerateLandscape(byte mode)
if (mode == GWM_HEIGHTMAP) {
SetGeneratingWorldProgress(GWP_LANDSCAPE, steps + GLS_HEIGHTMAP);
- LoadHeightmap(_file_to_saveload.name);
+ LoadHeightmap(_file_to_saveload.detail_ftype, _file_to_saveload.name);
IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
} else if (_settings_game.game_creation.land_generator == LG_TERRAGENESIS) {
SetGeneratingWorldProgress(GWP_LANDSCAPE, steps + GLS_TERRAGENESIS);