# USTRUCT : Property not initialized properly error - how to fix?

**URL:** <https://forums.unrealengine.com/t/ustruct-property-not-initialized-properly-error-how-to-fix/2273633>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [January 12, 2025, 8:55pm UTC](https://forums.unrealengine.com/t/ustruct-property-not-initialized-properly-error-how-to-fix/2273633 "2025-01-12T20:55:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheWolf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thewolf/32/1036665_2.png) [@TheWolf](https://forums.unrealengine.com/u/TheWolf)\
**Post date:** [January 12, 2025, 8:55pm UTC](https://forums.unrealengine.com/t/ustruct-property-not-initialized-properly-error-how-to-fix/2273633/1 "2025-01-12T20:55:18Z")

</div>

Hi, I’m a bit lost trying to solve an error showing up when loading a project containing a 3rd party plugin I’ve updated from 5.4 to 5.5.

“LogClass: Error: StructProperty FCPathNode::WorldLocation is not initialized properly even though its struct probably has a custom default constructor. Module:CPathfinding File:Public/CPathNode.h”

This appears to be the struct / property in question (found in CPathNode.h):

USTRUCT(BlueprintType)  
struct CPATHFINDING\_API FCPathNode  
{  
GENERATED\_BODY()

```
		FCPathNode() {}
FCPathNode(FVector Location)
	:
	WorldLocation(Location)
{}

    UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = CPath)
FVector WorldLocation;

// Normalized vector pointing to next node. ZeroVector on last node.
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = CPath)
	FVector Normal = FVector(0, 0, 0);

```

};

Also in the CPathNode.h file, the line “FVector WorldLocation;” appears under an internal class - but I don’t know if this is relevant to the issue with the struct.

Can provide more details if helpful.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [January 21, 2025, 10:17pm UTC](https://forums.unrealengine.com/t/ustruct-property-not-initialized-properly-error-how-to-fix/2273633/2 "2025-01-21T22:17:51Z")

</div>

try initializing worldlocation.  
e.g. `FVector WorldLocation = FVector::Zero;`
