From 08e4c5b19832c65fd9683be9036fd122a9018d08 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Wed, 26 Mar 2025 09:34:51 +1300 Subject: [PATCH] [Core] Fix a bug where ID aliases werent copied on hash collision --- clay.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clay.h b/clay.h index b2a5197..75afc20 100644 --- a/clay.h +++ b/clay.h @@ -1670,6 +1670,7 @@ Clay_LayoutElementHashMapItem* Clay__AddHashMapItem(Clay_ElementId elementId, Cl item.nextIndex = hashItem->nextIndex; if (hashItem->generation <= context->generation) { // First collision - assume this is the "same" element hashItem->elementId = elementId; // Make sure to copy this across. If the stringId reference has changed, we should update the hash item to use the new one. + hashItem->idAlias = idAlias; hashItem->generation = context->generation + 1; hashItem->layoutElement = layoutElement; hashItem->debugData->collision = false;