From 6cc46e1315bfe40ab0c945d27fba5e75b20a5dd4 Mon Sep 17 00:00:00 2001 From: SirCxyrtyx Date: Fri, 26 Jun 2020 14:02:10 -0700 Subject: [PATCH] SeqActLogEnabler: fix crash when linked SeqVarObj was null --- SeqActLogEnabler/SeqActLogEnabler.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SeqActLogEnabler/SeqActLogEnabler.cpp b/SeqActLogEnabler/SeqActLogEnabler.cpp index 02d0bc1..30ba84c 100644 --- a/SeqActLogEnabler/SeqActLogEnabler.cpp +++ b/SeqActLogEnabler/SeqActLogEnabler.cpp @@ -73,7 +73,12 @@ void __fastcall HookedPE(UObject *pObject, void *edx, UFunction *pFunction, void } else if (IsA(seqVar)) { - ss << static_cast(seqVar)->ObjValue->GetName() << " "; + const auto seqVarObj = static_cast(seqVar); + auto referencedObj = seqVarObj->ObjValue; + if (referencedObj != nullptr) + { + ss << referencedObj->GetName() << " "; + } } else if (IsA(seqVar)) {