From 07788b909f2c89cad6afc49a912249e07e166a84 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Wed, 16 Oct 2024 12:08:33 +1300 Subject: [PATCH] msvc --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index 3ff45cd..9ee2947 100644 --- a/clay.h +++ b/clay.h @@ -1459,7 +1459,7 @@ Clay_Dimensions Clay__MeasureTextCached(Clay_String *text, Clay_TextElementConfi // This element hasn't been seen in a few frames, delete the hash map item if (Clay__generation - hashEntry->generation > 2) { uint32_t nextIndex = hashEntry->nextIndex; - Clay__MeasureTextCacheItemArray_Set(&Clay__measureTextHashMapInternal, elementIndex, (Clay__MeasureTextCacheItem) {}); + Clay__MeasureTextCacheItemArray_Set(&Clay__measureTextHashMapInternal, elementIndex, CLAY__INIT(Clay__MeasureTextCacheItem) {}); Clay__int32_tArray_Add(&Clay__measureTextHashMapInternalFreeList, elementIndex); if (elementIndexPrevious == 0) { Clay__measureTextHashMap.internalArray[hashBucket] = nextIndex;