From 078f333086b42cbf504262504fff197709db4718 Mon Sep 17 00:00:00 2001 From: getnamo Date: Wed, 4 Dec 2024 16:58:41 -0800 Subject: [PATCH] early 5.5 warning fix --- SocketIOClient.uplugin | 4 ++-- Source/SIOJson/Private/SIOJConvert.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SocketIOClient.uplugin b/SocketIOClient.uplugin index 039205b..03e13ed 100644 --- a/SocketIOClient.uplugin +++ b/SocketIOClient.uplugin @@ -1,8 +1,8 @@ { "FileVersion": 3, "Version": 1, - "VersionName": "2.8.2", - "EngineVersion": "5.4", + "VersionName": "2.8.3", + "EngineVersion": "5.5", "FriendlyName": "Socket.IO Client", "Description": "Real-time WebSocket networking via Socket.IO protocol usable from blueprints and c++.", "Category": "Networking", diff --git a/Source/SIOJson/Private/SIOJConvert.cpp b/Source/SIOJson/Private/SIOJConvert.cpp index 712c212..67717d3 100644 --- a/Source/SIOJson/Private/SIOJConvert.cpp +++ b/Source/SIOJson/Private/SIOJConvert.cpp @@ -469,7 +469,7 @@ namespace int ItemsToRead = FMath::Clamp(ArrayValue.Num(), 0, Property->ArrayDim); for (int Index = 0; Index != ItemsToRead; ++Index) { - if (!ConvertScalarJsonValueToFPropertyWithContainer(ArrayValue[Index], Property, (char*)OutValue + Index * Property->ElementSize, ContainerStruct, Container, CheckFlags, SkipFlags)) + if (!ConvertScalarJsonValueToFPropertyWithContainer(ArrayValue[Index], Property, (char*)OutValue + Index * Property->GetElementSize(), ContainerStruct, Container, CheckFlags, SkipFlags)) { return false; }