summaryrefslogtreecommitdiff
path: root/src/saveload/goal_sl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/goal_sl.cpp')
-rw-r--r--src/saveload/goal_sl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/saveload/goal_sl.cpp b/src/saveload/goal_sl.cpp
index 57ad7c97a..4ee9f39eb 100644
--- a/src/saveload/goal_sl.cpp
+++ b/src/saveload/goal_sl.cpp
@@ -26,8 +26,7 @@ static const SaveLoad _goals_desc[] = {
static void Save_GOAL()
{
- Goal *s;
- FOR_ALL_GOALS(s) {
+ for (Goal *s : Goal::Iterate()) {
SlSetArrayIndex(s->index);
SlObject(s, _goals_desc);
}