summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/story_sl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/saveload/story_sl.cpp b/src/saveload/story_sl.cpp
index 800cacbab..dba2a064f 100644
--- a/src/saveload/story_sl.cpp
+++ b/src/saveload/story_sl.cpp
@@ -39,8 +39,7 @@ static const SaveLoad _story_page_elements_desc[] = {
static void Save_STORY_PAGE_ELEMENT()
{
- StoryPageElement *s;
- FOR_ALL_STORY_PAGE_ELEMENTS(s) {
+ for (StoryPageElement *s : StoryPageElement::Iterate()) {
SlSetArrayIndex(s->index);
SlObject(s, _story_page_elements_desc);
}
@@ -75,8 +74,7 @@ static const SaveLoad _story_pages_desc[] = {
static void Save_STORY_PAGE()
{
- StoryPage *s;
- FOR_ALL_STORY_PAGES(s) {
+ for (StoryPage *s : StoryPage::Iterate()) {
SlSetArrayIndex(s->index);
SlObject(s, _story_pages_desc);
}