summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcirdan <cirdansw@gmail.com>2012-12-08 19:01:56 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-12-27 10:30:55 +0000
commit46ff7d918b09878b6fe6bf504112425ad2ba49c2 (patch)
tree13bbcc3b53c91ab7d85ed2acd4b2f94d2e6d586d /src
parent0e017f62330c09bc8c5a69f3e8424645726de560 (diff)
downloadopenttd-46ff7d918b09878b6fe6bf504112425ad2ba49c2.tar.xz
Cleanup: Remove save-only autolength flag from economy chunk handlers
CH_AUTO_LENGTH is only used when saving chunks; it makes no sense to set it for chunks without a save handler.
Diffstat (limited to 'src')
-rw-r--r--src/saveload/economy_sl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/economy_sl.cpp b/src/saveload/economy_sl.cpp
index 637d2529c..a7d181946 100644
--- a/src/saveload/economy_sl.cpp
+++ b/src/saveload/economy_sl.cpp
@@ -98,7 +98,7 @@ static void Ptrs_CAPY()
extern const ChunkHandler _economy_chunk_handlers[] = {
{ 'CAPY', Save_CAPY, Load_CAPY, Ptrs_CAPY, nullptr, CH_ARRAY},
- { 'PRIC', nullptr, Load_PRIC, nullptr, nullptr, CH_RIFF | CH_AUTO_LENGTH},
- { 'CAPR', nullptr, Load_CAPR, nullptr, nullptr, CH_RIFF | CH_AUTO_LENGTH},
+ { 'PRIC', nullptr, Load_PRIC, nullptr, nullptr, CH_RIFF },
+ { 'CAPR', nullptr, Load_CAPR, nullptr, nullptr, CH_RIFF },
{ 'ECMY', Save_ECMY, Load_ECMY, nullptr, nullptr, CH_RIFF | CH_LAST},
};