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

Initialize fields in FCesiumSampleHeightResult. #1535

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

kring
Copy link
Member

@kring kring commented Oct 29, 2024

Unreal is reporting that the two fields in this class are not initialized. This is probably harmless, but good (and easy) to fix.

As reported here:
https://community.cesium.com/t/fcesiumsampleheightresult-errors/35906

@@ -28,5 +28,5 @@ struct CESIUMRUNTIME_API FCesiumSampleHeightResult {
* will have more information about the problem.
*/
UPROPERTY(BlueprintReadWrite, Category = "Cesium")
bool SampleSuccess;
bool SampleSuccess{false};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the biggest nitpick of all time, but in other classes or structs we tend to use = to initialize the default values, so I would like to change this to bool SampleSuccess = false 😅 Hopefully it's not too bad if I do that before merging

@j9liu j9liu merged commit 681dc06 into main Oct 31, 2024
23 checks passed
@j9liu j9liu deleted the initialize-height-result-fields branch October 31, 2024 20:08
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.

2 participants