Skip to content

Commit

Permalink
Fix assert delegate errors in UE 4.27
Browse files Browse the repository at this point in the history
  • Loading branch information
tustanivsky committed Oct 18, 2024
1 parent 85dca31 commit de24cf2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin-dev/Source/Sentry/Public/SentryOutputDeviceError.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#pragma once

#include "Runtime/Launch/Resources/Version.h"
#include "Misc/OutputDeviceError.h"
#include "Delegates/Delegate.h"

Expand All @@ -15,7 +16,11 @@ class FSentryOutputDeviceError : public FOutputDeviceError

FOutputDeviceError* GetParentDevice();

#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 3
TMulticastDelegate<void(const FString&), FDefaultTSDelegateUserPolicy> OnAssert;
#else
TMulticastDelegate<void(const FString&)> OnAssert;
#endif

private:
FOutputDeviceError* ParentDevice;
Expand Down

0 comments on commit de24cf2

Please sign in to comment.