Skip to content

Add default initialization to USTRUCT primitives in InputRecordingUti… - #19

Open
MichaelBCG wants to merge 1 commit into
life-exe:masterfrom
MichaelBCG:fix/initialize-testutils-ustructs
Open

Add default initialization to USTRUCT primitives in InputRecordingUti…#19
MichaelBCG wants to merge 1 commit into
life-exe:masterfrom
MichaelBCG:fix/initialize-testutils-ustructs

Conversation

@MichaelBCG

Copy link
Copy Markdown

This fix adds default initialization to USTRUCT fields containing primitive types.

Explanation:

When using InputRecordingUtils.h inside a module (according the video 09. Snake game), there are errors displaying in the UnrealEngine log when running Unreal Editor under debugger in VS.

Errors example:
image

If I understand correctly, UE requires primitive types in USTRUCT fields be initialized by default.

I've found other cases discussing similar issues:

Please note that this pull request also includes inline comments which are added with pull request #17

Software used:
UE Version: 5.3.2
Microsoft Visual Studio Community 2022 (64-bit) Version 17.9.4

MichaelBCG referenced this pull request in MichaelBCG/devops_ue Apr 17, 2024
This adds default initialization to USTRUCT fields containing primitive types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant