forked from rosebudai/OpenRCT2-Web
Fix #4477: Pack ObjectRepositoryHeader to ensure cache is valid in all builds
This commit is contained in:
1 parent
fcb0f2acd6
commit
7b637a8f95
1 file changed
+4
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user