Skip to content

Commit 299216e

Browse files
authored
Fix UE5.8 compile error (#2348)
* Fix UE5.8 compile error because of the deprecate of TMulticastScriptDelegate::ProcessMulticastDelegate * Fix UE5.8 compile error, make it cleaner * Fix clang-format error
1 parent 43b797e commit 299216e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

unreal/Puerts/Source/JsEnv/Private/JsEnvImpl.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,13 @@ void FJsEnvImpl::ExecuteDelegate(
24362436
{
24372437
JsCallbackPrototypeMap[SignatureFunction]->Call(Isolate, Context, Info,
24382438
[MulticastScriptDelegate = static_cast<FMulticastScriptDelegate*>(DelegatePtr)](void* Params)
2439-
{ MulticastScriptDelegate->ProcessMulticastDelegate<UObject>(Params); });
2439+
{
2440+
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 8
2441+
MulticastScriptDelegate->ProcessDelegate<UObject>(Params);
2442+
#else
2443+
MulticastScriptDelegate->ProcessMulticastDelegate<UObject>(Params);
2444+
#endif
2445+
});
24402446
}
24412447
}
24422448

0 commit comments

Comments
 (0)