Fix #4477: Pack ObjectRepositoryHeader to ensure cache is valid in all builds

This commit is contained in:
Michał Janiszewski authored and Ted John committed 2016-09-24 15:56:25 +01:00
1 parent fcb0f2acd6
commit 7b637a8f95
1 file changed
+4 -1
+4 -1
View File
@@ -48,8 +48,9 @@ extern "C"
#include "../util/sawyercoding.h"
}
constexpr uint16 OBJECT_REPOSITORY_VERSION = 9;
constexpr uint16 OBJECT_REPOSITORY_VERSION = 10;
#pragma pack(push, 1)
struct ObjectRepositoryHeader
{
uint16 Version;
@@ -60,6 +61,8 @@ struct ObjectRepositoryHeader
uint32 PathChecksum;
uint32 NumItems;
};
assert_struct_size(ObjectRepositoryHeader, 28);
#pragma pack(pop)
struct QueryDirectoryResult
{