Skip to content

Commit 22819ac

Browse files
authored
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.
1 parent 51f8905 commit 22819ac

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

unreal/inkcpp/Source/inkcpp/Public/InkThread.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,17 @@ class INKCPP_API UInkThread : public UObject
223223

224224
private:
225225
ink::runtime::runner mpRunner;
226+
227+
UPROPERTY()
226228
UTagList* mpTags;
229+
230+
UPROPERTY()
227231
UTagList* mkTags = nullptr;
232+
233+
UPROPERTY()
228234
UTagList* mgTags = nullptr;
235+
236+
UPROPERTY()
229237
TArray<UInkChoice*> mCurrentChoices; /// @TODO: make accessible?
230238

231239
TMap<FName, FTagFunctionMulticastDelegate> mTagFunctions;

0 commit comments

Comments
 (0)