diff options
author | glx22 <glx@openttd.org> | 2021-05-02 22:41:34 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-06-06 19:35:06 +0200 |
commit | c27afdf3f6b8e7e073b70d4935ca1c871855f3ca (patch) | |
tree | 8aa6a64805d1856c873b8a053c2d98a9d1b8585f /src/saveload/story_sl.cpp | |
parent | 3559e55b9145c5b6c146003b357a158c73efee4e (diff) | |
download | openttd-c27afdf3f6b8e7e073b70d4935ca1c871855f3ca.tar.xz |
Codechange: Remove FOR_ALL_CHUNK_HANDLERS
Co-Authored-By: Patric Stout <truebrain@openttd.org>
Diffstat (limited to 'src/saveload/story_sl.cpp')
-rw-r--r-- | src/saveload/story_sl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/saveload/story_sl.cpp b/src/saveload/story_sl.cpp index 06083fb10..df5b1406f 100644 --- a/src/saveload/story_sl.cpp +++ b/src/saveload/story_sl.cpp @@ -95,7 +95,9 @@ static void Load_STORY_PAGE() _story_page_next_sort_value = max_sort_value + 1; } -extern const ChunkHandler _story_page_chunk_handlers[] = { - { 'STPE', Save_STORY_PAGE_ELEMENT, Load_STORY_PAGE_ELEMENT, nullptr, nullptr, CH_ARRAY}, - { 'STPA', Save_STORY_PAGE, Load_STORY_PAGE, nullptr, nullptr, CH_ARRAY | CH_LAST}, +static const ChunkHandler story_page_chunk_handlers[] = { + { 'STPE', Save_STORY_PAGE_ELEMENT, Load_STORY_PAGE_ELEMENT, nullptr, nullptr, CH_ARRAY }, + { 'STPA', Save_STORY_PAGE, Load_STORY_PAGE, nullptr, nullptr, CH_ARRAY }, }; + +extern const ChunkHandlerTable _story_page_chunk_handlers(story_page_chunk_handlers); |