# Typo in Vector.h

**URL:** <https://forums.unrealengine.com/t/typo-in-vector-h/484077>\
**Category:** C++\
**Tags:** source-code, unreal-engine, vector, CPP, question\
**Created:** [May 28, 2021, 10:37pm UTC](https://forums.unrealengine.com/t/typo-in-vector-h/484077 "2021-05-28T22:37:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelfloresarq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@angelfloresarq](https://forums.unrealengine.com/u/angelfloresarq)\
**Post date:** [May 28, 2021, 10:37pm UTC](https://forums.unrealengine.com/t/typo-in-vector-h/484077/1 "2021-05-28T22:37:30Z")

</div>

I was having issues iterating a struct through a Vector4.

Turns out the 4th coordinate, W, is missing in the definition of the operator ==.

In IntVector.h, on line 746, it’s defined as

```
FORCEINLINE bool FIntVector4::operator==(const FIntVector4& Other) const
{
	return X == Other.X && Y == Other.Y && Z == Other.Z;
}

```

and it should be

FORCEINLINE bool FIntVector4::operator==(const FIntVector4& Other) const  
{  
return X == Other.X && Y == Other.Y && Z == Other.Z && W == Other.W;  
}

I believe this is the same issue as some other people described at UE-97794

Thanks
