summaryrefslogtreecommitdiff
path: root/src/serialization-static-ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialization-static-ui.cpp')
-rw-r--r--src/serialization-static-ui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/serialization-static-ui.cpp b/src/serialization-static-ui.cpp
index d7de645..8c21d7c 100644
--- a/src/serialization-static-ui.cpp
+++ b/src/serialization-static-ui.cpp
@@ -21,7 +21,7 @@ pk_handle pke_serialize_ui_box_internal(srlztn_serialize_helper *h, pke_ui_box_t
kvec.child_handles.bkt = h->bkt;
h->handle_head.itemIndex++;
- compt_a<4==sizeof(pke_ui_box_type_data::pke_ui_box_type_data_text)>();
+ compt_a<8==sizeof(pke_ui_box_type_data::pke_ui_box_type_data_text)>();
{
kve.key = SRLZTN_UI_BOX_DATA_TEXT_FONT_RENDER_UUID;
s = pk_new_arr<char>(37, h->bkt);
@@ -54,7 +54,7 @@ pk_handle pke_serialize_ui_box_internal(srlztn_serialize_helper *h, pke_ui_box_t
kvec.child_handles.bkt = h->bkt;
h->handle_head.itemIndex++;
- compt_a<16==sizeof(pke_ui_box_type_data::pke_ui_box_type_data_button_text)>();
+ compt_a<24==sizeof(pke_ui_box_type_data::pke_ui_box_type_data_button_text)>();
{
kve.key = SRLZTN_UI_BOX_DATA_BUTTON_TEXT_FONT_RENDER_UUID;
s = pk_new_arr<char>(37, h->bkt);
@@ -130,7 +130,7 @@ void pke_deserialize_ui_box_internal(srlztn_deserialize_helper *h, pke_kve_conta
assert(kvec->arr.next == 1);
pk_uuid font_render_uuid = pk_uuid_zed;
- compt_a<4==sizeof(pke_ui_box_type_data::pke_ui_box_type_data_text)>();
+ compt_a<8==sizeof(pke_ui_box_type_data::pke_ui_box_type_data_text)>();
if (strstr(SRLZTN_UI_BOX_DATA_TEXT_FONT_RENDER_UUID, kvec->arr[0].key)) {
kvec->arr[0].val >> font_render_uuid;
}
@@ -154,7 +154,7 @@ void pke_deserialize_ui_box_internal(srlztn_deserialize_helper *h, pke_kve_conta
data->pke_event_handle = PkeEventHandle_MAX;
data->ev_id = pk_ev_id_T{0};
- compt_a<16==sizeof(pke_ui_box_type_data::pke_ui_box_type_data_button_text)>();
+ compt_a<24==sizeof(pke_ui_box_type_data::pke_ui_box_type_data_button_text)>();
if (strstr(SRLZTN_UI_BOX_DATA_BUTTON_TEXT_FONT_RENDER_UUID, kvec->arr[0].key)) {
kvec->arr[0].val >> font_render_uuid;
}