Skip to content

Commit

Permalink
SeqActLogEnabler: fix crash when linked SeqVarObj was null
Browse files Browse the repository at this point in the history
  • Loading branch information
SirCxyrtyx committed Jun 26, 2020
1 parent 4153990 commit 6cc46e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SeqActLogEnabler/SeqActLogEnabler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ void __fastcall HookedPE(UObject *pObject, void *edx, UFunction *pFunction, void
}
else if (IsA<USeqVar_Object>(seqVar))
{
ss << static_cast<USeqVar_Object*>(seqVar)->ObjValue->GetName() << " ";
const auto seqVarObj = static_cast<USeqVar_Object*>(seqVar);
auto referencedObj = seqVarObj->ObjValue;
if (referencedObj != nullptr)
{
ss << referencedObj->GetName() << " ";
}
}
else if (IsA<USeqVar_Name>(seqVar))
{
Expand Down

0 comments on commit 6cc46e1

Please sign in to comment.