From b4452d080c094ff8e70ebc5ca6349711d6ad09c6 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Fri, 10 Jan 2025 14:36:24 +1300 Subject: [PATCH] C++ init order fix --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index f9b2490..c79a490 100644 --- a/clay.h +++ b/clay.h @@ -3707,8 +3707,8 @@ Clay_Context* Clay_Initialize(Clay_Arena arena, Clay_Dimensions layoutDimensions .maxElementCount = oldContext ? oldContext->maxElementCount : Clay__defaultMaxElementCount, .maxMeasureTextCacheWordCount = oldContext ? oldContext->maxMeasureTextCacheWordCount : Clay__defaultMaxElementCount * 2, .errorHandler = errorHandler.errorHandlerFunction ? errorHandler : CLAY__INIT(Clay_ErrorHandler) { Clay__ErrorHandlerFunctionDefault }, - .internalArena = arena, .layoutDimensions = layoutDimensions, + .internalArena = arena, }; Clay_SetCurrentContext(context); Clay__InitializePersistentMemory(context);