From c7c9f5dea92c563d350495f8cbc7768e35948126 Mon Sep 17 00:00:00 2001 From: Alex Rudd <3588652+alexrudd@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:04:03 +0000 Subject: [PATCH] Initialise FCounterResponse members Initialising members to their default values prevents compiler warnings: ``` Int64Property FCounterResponse::Count is not initialized properly even though its struct probably has a custom default constructor. Module:Agones File:Classes/Classes.h Int64Property FCounterResponse::Capacity is not initialized properly even though its struct probably has a custom default constructor. Module:Agones File:Classes/Classes.h ``` --- sdks/unreal/Agones/Source/Agones/Classes/Classes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/unreal/Agones/Source/Agones/Classes/Classes.h b/sdks/unreal/Agones/Source/Agones/Classes/Classes.h index d7b0a67df2..627d8f573f 100644 --- a/sdks/unreal/Agones/Source/Agones/Classes/Classes.h +++ b/sdks/unreal/Agones/Source/Agones/Classes/Classes.h @@ -423,10 +423,10 @@ struct FCounterResponse } UPROPERTY(BlueprintReadOnly, Category = "Agones") - int64 Count; + int64 Count = 0; UPROPERTY(BlueprintReadOnly, Category = "Agones") - int64 Capacity; + int64 Capacity = 0; explicit FCounterResponse(const TSharedPtr JsonObject) {