Fix ctors

This commit is contained in:
Christian Semmler 2025-01-03 11:59:59 -07:00
parent 686d9ba136
commit 3ecdb5480a

View File

@ -28,6 +28,9 @@ class Vector2 {
// FUNCTION: BETA10 0x100116a0 // FUNCTION: BETA10 0x100116a0
Vector2(float* p_data) { SetData(p_data); } Vector2(float* p_data) { SetData(p_data); }
// FUNCTION: BETA10 0x100109e0
Vector2(const float* p_data) { m_data = (float*) p_data; }
inline virtual float* GetData(); // vtable+0x28 inline virtual float* GetData(); // vtable+0x28
inline virtual const float* GetData() const; // vtable+0x24 inline virtual const float* GetData() const; // vtable+0x24
inline virtual void Clear(); // vtable+0x2c inline virtual void Clear(); // vtable+0x2c
@ -89,7 +92,7 @@ class Vector3 : public Vector2 {
// initialization with a const source fundamentally incompatible. // initialization with a const source fundamentally incompatible.
// FUNCTION: BETA10 0x100109a0 // FUNCTION: BETA10 0x100109a0
Vector3(const float* p_data) : Vector2((float*) p_data) {} Vector3(const float* p_data) : Vector2(p_data) {}
inline void Clear() override; // vtable+0x2c inline void Clear() override; // vtable+0x2c
inline float LenSquared() const override; // vtable+0x40 inline float LenSquared() const override; // vtable+0x40
@ -127,7 +130,7 @@ class Vector4 : public Vector3 {
// supporting the theory that this decompilation is correct. // supporting the theory that this decompilation is correct.
// FUNCTION: BETA10 0x100701b0 // FUNCTION: BETA10 0x100701b0
Vector4(const float* p_data) : Vector3((float*) p_data) {} Vector4(const float* p_data) : Vector3(p_data) {}
inline void Clear() override; // vtable+0x2c inline void Clear() override; // vtable+0x2c
inline float LenSquared() const override; // vtable+0x40 inline float LenSquared() const override; // vtable+0x40