Codechange: Replace story related FOR_ALL with range-based for loops
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user