Skip to content

Commit

Permalink
bug fix for creating signature function for delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
rowechien committed Sep 6, 2019
1 parent 534b9d5 commit 7f8b747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Plugins/UnLua/Source/UnLua/Private/DelegateHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ void FDelegateHelper::Cleanup(bool bFullCleanup)
void FDelegateHelper::CreateSignature(UFunction *TemplateFunction, FName FuncName, const FCallbackDesc &Callback, int32 CallbackRef)
{
UFunction *SignatureFunction = DuplicateUFunction(TemplateFunction, Callback.Class, FuncName); // duplicate the signature UFunction
SignatureFunction->Script.Empty();

FSignatureDesc *SignatureDesc = new FSignatureDesc;
SignatureDesc->SignatureFunctionDesc = GReflectionRegistry.RegisterFunction(SignatureFunction, CallbackRef);
Expand Down

0 comments on commit 7f8b747

Please sign in to comment.