From 3c119e720d502fa5c85467937990846db2f52eaa Mon Sep 17 00:00:00 2001 From: getnamo Date: Wed, 20 May 2020 17:24:27 -0700 Subject: [PATCH] 4.25 compile fixes --- NodeJs.uplugin | 2 +- Source/NodeJs/Private/NodeComponent.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NodeJs.uplugin b/NodeJs.uplugin index a1015bb..9be7eb0 100644 --- a/NodeJs.uplugin +++ b/NodeJs.uplugin @@ -1,7 +1,7 @@ { "FileVersion": 3, "Version": 1, - "VersionName": "0.5.0", + "VersionName": "0.6.0", "FriendlyName": "NodeJs", "Description": "Embed node.js as an unreal plugin.", "Category": "Programming", diff --git a/Source/NodeJs/Private/NodeComponent.cpp b/Source/NodeJs/Private/NodeComponent.cpp index 638465a..392af61 100644 --- a/Source/NodeJs/Private/NodeComponent.cpp +++ b/Source/NodeJs/Private/NodeComponent.cpp @@ -373,12 +373,12 @@ bool UNodeComponent::CallBPFunctionWithResponse(UObject* Target, const FString& } //Check function signature - TFieldIterator Iterator(Function); + TFieldIterator Iterator(Function); - TArray Properties; + TArray Properties; while (Iterator && (Iterator->PropertyFlags & CPF_Parm)) { - UProperty* Prop = *Iterator; + FProperty* Prop = *Iterator; Properties.Add(Prop); ++Iterator; } @@ -469,7 +469,7 @@ bool UNodeComponent::CallBPFunctionWithResponse(UObject* Target, const FString& //array? else if (FirstParam.Equals("TArray")) { - UArrayProperty* ArrayProp = Cast(Properties[0]); + FArrayProperty* ArrayProp = CastField(Properties[0]); FString Inner; ArrayProp->GetCPPMacroType(Inner);