From 3ecdb5480a95b453a47d591edfb542e2965c9e77 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 3 Jan 2025 11:59:59 -0700 Subject: [PATCH] Fix ctors --- LEGO1/realtime/vector.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/LEGO1/realtime/vector.h b/LEGO1/realtime/vector.h index e087e24d..defaab57 100644 --- a/LEGO1/realtime/vector.h +++ b/LEGO1/realtime/vector.h @@ -28,6 +28,9 @@ class Vector2 { // FUNCTION: BETA10 0x100116a0 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 const float* GetData() const; // vtable+0x24 inline virtual void Clear(); // vtable+0x2c @@ -89,7 +92,7 @@ class Vector3 : public Vector2 { // initialization with a const source fundamentally incompatible. // 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 float LenSquared() const override; // vtable+0x40 @@ -127,7 +130,7 @@ class Vector4 : public Vector3 { // supporting the theory that this decompilation is correct. // 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 float LenSquared() const override; // vtable+0x40