# Creating a USTRUCT() header crashes my project

**URL:** <https://forums.unrealengine.com/t/creating-a-ustruct-header-crashes-my-project/422624>\
**Category:** Blueprint\
**Tags:** Struct, unreal-engine, UE4, CPP, Blueprint, question\
**Created:** [April 14, 2018, 2:15pm UTC](https://forums.unrealengine.com/t/creating-a-ustruct-header-crashes-my-project/422624 "2018-04-14T14:15:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Desmond27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Desmond27](https://forums.unrealengine.com/u/Desmond27)\
**Post date:** [April 14, 2018, 2:15pm UTC](https://forums.unrealengine.com/t/creating-a-ustruct-header-crashes-my-project/422624/1 "2018-04-14T14:15:28Z")

</div>

Hi, I’m having a very strange issue. I am using UE 4.17.2 currently. For my project I need to create a USTRUCT() struct but any time I create it, my project will crash on boot with no error code or stack available. Then if I comment out the whole code if my header file, then the project will load fine. So I know it’s this file, but I cannot seem to figure out what’s wrong. I followed the tutorial for setting up a struct one of the Unreal documentation pages. Can someone please help me figure out what I’m doing wrong with this script? Everything is minimal because I was worried that parameters were wrong on UPROPERTY()'s. Thanks ahead of time for any help you guys can give.

```
#pragma once

#include "CoreMinimal.h"
#include "Engine/UserDefinedStruct.h"
#include "SkeletalMeshTypes.h"
#include "Item_Data.generated.h"

/**
 * BlueprintReadWrite, Category = "Default"
 */

USTRUCT(BlueprintType)
struct FItem_Data
{
	GENERATED_USTRUCT_BODY()

	UPROPERTY()
		FString Name;
	UPROPERTY()
		FString Description;
	UPROPERTY()
		float Value;
	UPROPERTY()
		float Damage_Physical;
	UPROPERTY()
		float Damage_Ice;
	UPROPERTY()
		float Damage_Poison;
	UPROPERTY()
		float Damage_Thunder;
	UPROPERTY()
		float Damage_Fire;
	UPROPERTY()
		float Defense_Physical;
	UPROPERTY()
		float Defense_Poison;
	UPROPERTY()
		float Defense_Thunder;
	UPROPERTY()
		float Defense_Fire;
	UPROPERTY()
		float Defense_Ice;
	UPROPERTY()
		USkeletalMesh *Equip_Model_Left;
	UPROPERTY()
		USkeletalMesh *Equip_Model_Right;
};

```

---

<div class="post-metadata">

**Author:** ![Desmond27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Desmond27](https://forums.unrealengine.com/u/Desmond27)\
**Post date:** [April 14, 2018, 3:46pm UTC](https://forums.unrealengine.com/t/creating-a-ustruct-header-crashes-my-project/422624/2 "2018-04-14T15:46:11Z")

</div>

I solved my own problem. It turns out you cannot name a STRUCT() struct the exact same name as a Blueprint that is also a struct. So I’m putting this here for anyone who has a similar issue. **Don’t name defined data types the same name as blueprint-defined data types**. It will cause a crash.

---

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [April 14, 2018, 11:40pm UTC](https://forums.unrealengine.com/t/creating-a-ustruct-header-crashes-my-project/422624/3 "2018-04-14T23:40:59Z")

</div>

please mark that as solved then (accept your own answer)
