From a8d593da76f0a7782e2b339219a3e3f0ee1b51ae Mon Sep 17 00:00:00 2001 From: getnamo Date: Sun, 13 Dec 2020 18:26:43 -0800 Subject: [PATCH] Fix #238 by making Construct Json Req non-pure Constructing a request should happen before other calls, made non-pure. Should make #238 cases less common. --- SocketIOClient.uplugin | 2 +- Source/SIOJson/Public/SIOJRequestJSON.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SocketIOClient.uplugin b/SocketIOClient.uplugin index da456a58..df10032a 100644 --- a/SocketIOClient.uplugin +++ b/SocketIOClient.uplugin @@ -1,7 +1,7 @@ { "FileVersion": 3, "Version": 1, - "VersionName": "1.5.0", + "VersionName": "1.5.1", "EngineVersion" : "4.26.0", "FriendlyName": "Socket.IO Client", "Description": "Real-time networking library Socket.IO Client usable from blueprints and c++.", diff --git a/Source/SIOJson/Public/SIOJRequestJSON.h b/Source/SIOJson/Public/SIOJRequestJSON.h index fb56a138..c4fd92b6 100644 --- a/Source/SIOJson/Public/SIOJRequestJSON.h +++ b/Source/SIOJson/Public/SIOJRequestJSON.h @@ -93,11 +93,11 @@ class SIOJSON_API USIOJRequestJSON : public UObject // Construction /** Creates new request (totally empty) */ - UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Request (Empty)", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"), Category = "SIOJ|Request") + UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request (Empty)", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"), Category = "SIOJ|Request") static USIOJRequestJSON* ConstructRequest(UObject* WorldContextObject); /** Creates new request with defined verb and content type */ - UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Request", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"), Category = "SIOJ|Request") + UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"), Category = "SIOJ|Request") static USIOJRequestJSON* ConstructRequestExt(UObject* WorldContextObject, ESIORequestVerb Verb, ESIORequestContentType ContentType); /** Set verb to the request */