diff options
| author | aura <nw@moneybot.cc> | 2026-07-27 12:56:07 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-07-27 12:56:07 +0200 |
| commit | 468813b133a6a3ff0b85d3b34f1009cfeae815e4 (patch) | |
| tree | 832a562a24ca16ebad1f28d8bb40c932994d859b /src/editor/properties.h | |
| parent | 372f23024163e0fab57a847ddda41f06857efd7e (diff) | |
fix alignment on eobject/props
Diffstat (limited to 'src/editor/properties.h')
| -rw-r--r-- | src/editor/properties.h | 6 |
1 files 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<EPROP_ENTRY> 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 <typename T> struct __eprop_type { static const U8 type = EPROP_INVALID; @@ -222,6 +223,7 @@ struct EDITOR_PROP { template <> struct __eprop_type<struct MAP_VERTEX> { static const U8 type = EPROP_VERTEX; }; template <> struct __eprop_type<LIST<struct MAP_VERTEX>> { 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 ); |
