From 22819ac79bf61e9d1449967e53d688a822741ef0 Mon Sep 17 00:00:00 2001 From: dynontricia Date: Sat, 18 Apr 2026 21:17:48 -0400 Subject: [PATCH] Update InkThread.h for Tag Crashes My system crashed because there was no UPROPERTY() on these UTagList and UInkChoice pointers, leaving them unprotected from UE's garbage collector. --- unreal/inkcpp/Source/inkcpp/Public/InkThread.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unreal/inkcpp/Source/inkcpp/Public/InkThread.h b/unreal/inkcpp/Source/inkcpp/Public/InkThread.h index a2f51821..b8abaf0b 100644 --- a/unreal/inkcpp/Source/inkcpp/Public/InkThread.h +++ b/unreal/inkcpp/Source/inkcpp/Public/InkThread.h @@ -223,9 +223,17 @@ class INKCPP_API UInkThread : public UObject private: ink::runtime::runner mpRunner; + + UPROPERTY() UTagList* mpTags; + + UPROPERTY() UTagList* mkTags = nullptr; + + UPROPERTY() UTagList* mgTags = nullptr; + + UPROPERTY() TArray mCurrentChoices; /// @TODO: make accessible? TMap mTagFunctions;