Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 5.2 #404

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/VaRest/Public/VaRestJsonObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ class VAREST_API UVaRestJsonObject : public UObject
for (auto& field : Fields)
{
// No need to support all int types as they're not supported by BP
if (TIsSame<T, uint8>::Value || TIsSame<T, int32>::Value || TIsSame<T, int64>::Value || TIsSame<T, float>::Value)
if (std::is_same_v<T, uint8> || std::is_same_v<T, int32>|| std::is_same_v<T, int64> || std::is_same_v<T, float>)
{
SetNumberField(field.Key, field.Value);
}
else if (TIsSame<T, bool>::Value)
else if (std::is_same_v<T, bool>)
{
SetBoolField(field.Key, (bool)field.Value);
}
Expand Down
2 changes: 1 addition & 1 deletion VaRest.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"VersionName" : "1.1-r32",
"CreatedBy" : "Vladimir Alyamkin",
"CreatedByURL" : "https://ufna.dev",
"EngineVersion" : "5.1.0",
"EngineVersion" : "5.2.0",
"Description" : "Plugin that makes REST (JSON) server communication easy to use",
"Category" : "Network",
"DocsURL": "https://bit.ly/VaRest-Docs",
Expand Down