Skip to content
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/CPedSync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void CPedSync::Packet_PedSync(NetBitStreamInterface& BitStream)
unsigned char ucFlags = 0;
BitStream.Read(ucFlags);

CVector vecPosition{ CVector::NoInit{} }, vecMoveSpeed{ CVector::NoInit{} };
CVector vecPosition{}, vecMoveSpeed{};
float fRotation, fHealth, fArmor;
bool bOnFire;
bool bIsInWater;
Expand Down
6 changes: 1 addition & 5 deletions Shared/sdk/CVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ class CVector
float fY;
float fZ;

struct NoInit{};

CVector(NoInit) {}

constexpr CVector() : fX(0.0f), fY(0.0f), fZ(0.0f) {}

constexpr CVector(float x, float y, float z) : fX(x), fY(y), fZ(z) {}
constexpr CVector(float x, float y = 0, float z = 0) : fX(x), fY(y), fZ(z) {}

constexpr CVector(const CVector4D& vec) noexcept : fX(vec.fX), fY(vec.fY), fZ(vec.fZ) {}

Expand Down
Loading