Update clay.h

fix indent
This commit is contained in:
Harrison Lambeth 2025-01-29 13:39:47 -07:00 committed by GitHub
parent 3a3815ebc8
commit c2de8814a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
clay.h
View File

@ -1189,7 +1189,7 @@ Clay_LayoutElementHashMapItem* Clay__AddHashMapItem(Clay_ElementId elementId, Cl
if (hashItem->elementId.id == elementId.id) { // Collision - resolve based on generation
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->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->generation = context->generation + 1;
hashItem->layoutElement = layoutElement;
hashItem->debugData->collision = false;