From 468813b133a6a3ff0b85d3b34f1009cfeae815e4 Mon Sep 17 00:00:00 2001 From: aura Date: Mon, 27 Jul 2026 12:56:07 +0200 Subject: fix alignment on eobject/props --- src/editor/properties.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/editor/properties.h b/src/editor/properties.h index d4fc3bb..5481e60 100644 --- a/src/editor/properties.h +++ b/src/editor/properties.h @@ -87,6 +87,7 @@ struct EPROP_ENTRY { }; // editor map object +#pragma pack(push, 4) struct EOBJECT { LIST eprops{}; }; @@ -187,14 +188,14 @@ struct EDITOR_PROP { U64 dataoff; U64 parentoff; - U8 type; STR displayname; F64 min{ -INFINITY }; F64 max{ INFINITY }; F32 step; - U8 readonly; FNV1A hash; U32 size; + U8 readonly; + U8 type; template struct __eprop_type { static const U8 type = EPROP_INVALID; @@ -222,6 +223,7 @@ struct EDITOR_PROP { template <> struct __eprop_type { static const U8 type = EPROP_VERTEX; }; template <> struct __eprop_type> { static const U8 type = EPROP_VERTEX_LIST; }; }; +#pragma pack(pop) inline EDITOR_PROP* eprop_from_ref( EOBJECT* obj, EPROP_ENTRY e ) { return (EDITOR_PROP*)( (U64)obj + e.offset ); -- cgit v1.2.3