From 406067fe222f8cab1304d10c5d5c5ae7a75202e0 Mon Sep 17 00:00:00 2001 From: Jamie Greunbaum Date: Sun, 2 Apr 2023 01:34:41 -0400 Subject: [PATCH] Changed Execute to ExecuteIfBound to prevent errors if we don't care about retrieving the error. --- Source/Unrealzilla/Private/BugMarkerSubsystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Unrealzilla/Private/BugMarkerSubsystem.cpp b/Source/Unrealzilla/Private/BugMarkerSubsystem.cpp index 22ef8da..9f07074 100644 --- a/Source/Unrealzilla/Private/BugMarkerSubsystem.cpp +++ b/Source/Unrealzilla/Private/BugMarkerSubsystem.cpp @@ -140,19 +140,19 @@ void UBugMarkerSubsystem::LoadNewBatch() void UBugMarkerSubsystem::FormPrepResponseCallback(const FUnrealzillaFormPrepData &Data) { - this->FormPrepResponse.Execute(Data); + this->FormPrepResponse.ExecuteIfBound(Data); } void UBugMarkerSubsystem::POSTResponseCallback(const TArray &Data) { if (!Data.IsEmpty()) { - this->FormPostResponse.Execute(Data[0]); + this->FormPostResponse.ExecuteIfBound(Data[0]); } } void UBugMarkerSubsystem::ErrorResponseCallback(const FUnrealzillaErrorData &Error) { - this->ErrorResponse.Execute(Error); + this->ErrorResponse.ExecuteIfBound(Error); }