[Core] Fix a bug with how element string ids were stored when using Clay_Hovered

This commit is contained in:
Nic Barker 2025-04-01 10:40:04 +13:00
parent 3f635cdd79
commit b4dc02c73a

2
clay.h
View File

@ -1981,7 +1981,7 @@ Clay_ElementId Clay__AttachId(Clay_ElementId elementId) {
uint32_t idAlias = openLayoutElement->id;
openLayoutElement->id = elementId.id;
Clay__AddHashMapItem(elementId, openLayoutElement, idAlias);
Clay__StringArray_Add(&context->layoutElementIdStrings, elementId.stringId);
Clay__StringArray_Set(&context->layoutElementIdStrings, context->layoutElements.length - 1, elementId.stringId);
return elementId;
}