summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-07-03 18:26:24 +0200
committerGitHub <noreply@github.com>2021-07-03 18:26:24 +0200
commit0fa200756001078d5222f6e17248d1d67a828c74 (patch)
tree4bc312147b83c77fe3080814cea1acf39df93ec5 /src/saveload
parentd38ad7d80ca592612ce7bc98e770e40ae778fd04 (diff)
downloadopenttd-0fa200756001078d5222f6e17248d1d67a828c74.tar.xz
Fix cdb3dd049: GOAL chunk was not using the header for loading (#9409)
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/goal_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/goal_sl.cpp b/src/saveload/goal_sl.cpp
index 68ba3597a..7e2cad491 100644
--- a/src/saveload/goal_sl.cpp
+++ b/src/saveload/goal_sl.cpp
@@ -42,7 +42,7 @@ static void Load_GOAL()
int index;
while ((index = SlIterateArray()) != -1) {
Goal *s = new (index) Goal();
- SlObject(s, _goals_desc);
+ SlObject(s, slt);
}
}