diff options
author | peter1138 <peter1138@openttd.org> | 2019-04-13 20:18:31 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-04-13 20:35:10 +0100 |
commit | 4f052fc2a4f22dbb08c2a58e262eca99f8281000 (patch) | |
tree | e34c031858a355aedee47e3532cd28fbd80cb6b7 /src/saveload/oldloader.h | |
parent | 410b81537cd28e133acfc423efc88627f4454676 (diff) | |
download | openttd-4f052fc2a4f22dbb08c2a58e262eca99f8281000.tar.xz |
Cleanup: Fix alignment after NULL -> nullptr change.
Diffstat (limited to 'src/saveload/oldloader.h')
-rw-r--r-- | src/saveload/oldloader.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/saveload/oldloader.h b/src/saveload/oldloader.h index a2953196b..12d8a348e 100644 --- a/src/saveload/oldloader.h +++ b/src/saveload/oldloader.h @@ -125,12 +125,12 @@ static inline uint32 ReadUint32(LoadgameState *ls) * - OCL_CHUNK: load another proc to load a part of the savegame, 'amount' times * - OCL_ASSERT: to check if we are really at the place we expect to be.. because old savegames are too binary to be sure ;) */ -#define OCL_SVAR(type, base, offset) { type, 1, nullptr, (uint)cpp_offsetof(base, offset), nullptr } +#define OCL_SVAR(type, base, offset) { type, 1, nullptr, (uint)cpp_offsetof(base, offset), nullptr } #define OCL_VAR(type, amount, pointer) { type, amount, pointer, 0, nullptr } -#define OCL_END() { OC_END, 0, nullptr, 0, nullptr } -#define OCL_CNULL(type, amount) { OC_NULL | type, amount, nullptr, 0, nullptr } -#define OCL_CCHUNK(type, amount, proc) { OC_CHUNK | type, amount, nullptr, 0, proc } -#define OCL_ASSERT(type, size) { OC_ASSERT | type, 1, nullptr, size, nullptr } +#define OCL_END() { OC_END, 0, nullptr, 0, nullptr } +#define OCL_CNULL(type, amount) { OC_NULL | type, amount, nullptr, 0, nullptr } +#define OCL_CCHUNK(type, amount, proc) { OC_CHUNK | type, amount, nullptr, 0, proc } +#define OCL_ASSERT(type, size) { OC_ASSERT | type, 1, nullptr, size, nullptr } #define OCL_NULL(amount) OCL_CNULL((OldChunkType)0, amount) #define OCL_CHUNK(amount, proc) OCL_CCHUNK((OldChunkType)0, amount, proc) |