Merge pull request #2919 from lioncash/vec
Vec3: Remove a memset call on the this pointer.
This commit is contained in:
commit
a6bd2fea28
|
@ -150,15 +150,14 @@ public:
|
||||||
|
|
||||||
bool operator==(const Vec3 &other) const
|
bool operator==(const Vec3 &other) const
|
||||||
{
|
{
|
||||||
if (x == other.x && y == other.y && z == other.z)
|
return x == other.x && y == other.y && z == other.z;
|
||||||
return true;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetZero()
|
void SetZero()
|
||||||
{
|
{
|
||||||
memset((void*)this, 0, sizeof(float) * 3);
|
x = 0.0f;
|
||||||
|
y = 0.0f;
|
||||||
|
z = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DoState(PointerWrap &p)
|
void DoState(PointerWrap &p)
|
||||||
|
|
Loading…
Reference in New Issue