diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp index 973f3ee9f5..1e9116c51d 100644 --- a/src/saveload/oldloader.cpp +++ b/src/saveload/oldloader.cpp @@ -129,7 +129,6 @@ bool LoadChunk(LoadgameState *ls, void *base, const OldChunks *chunks) } uint8_t *ptr = (uint8_t*)chunk->ptr; - if (chunk->type & OC_DEREFERENCE_POINTER) ptr = *(uint8_t**)ptr; for (uint i = 0; i < chunk->amount; i++) { /* Handle simple types */ diff --git a/src/saveload/oldloader.h b/src/saveload/oldloader.h index 5e4ebe8592..031e86e4d5 100644 --- a/src/saveload/oldloader.h +++ b/src/saveload/oldloader.h @@ -70,12 +70,6 @@ enum OldChunkType : uint32_t { OC_TILE = OC_VAR_U32 | OC_FILE_U16, - /** - * Dereference the pointer once before writing to it, - * so we do not have to use big static arrays. - */ - OC_DEREFERENCE_POINTER = 1U << 31, - OC_END = 0, ///< End of the whole chunk, all 32 bits set to zero };