Changeset - r24519:ea6b24716fdb
[Not reviewed]
master
0 1 0
cirdan - 12 years ago 2012-12-08 18:01:56
cirdansw@gmail.com
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.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/saveload/economy_sl.cpp
Show inline comments
 
@@ -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},
 
};
0 comments (0 inline, 0 general)