Skip to content

Commit

Permalink
Initialise FCounterResponse members (#4084)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
alexrudd authored Jan 14, 2025
1 parent 00820f7 commit 1c769e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdks/unreal/Agones/Source/Agones/Classes/Classes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<FJsonObject> JsonObject)
{
Expand Down

0 comments on commit 1c769e0

Please sign in to comment.