diff --git a/configure.py b/configure.py index ebdeaee8..121bfedf 100644 --- a/configure.py +++ b/configure.py @@ -306,7 +306,7 @@ def Rel(lib_name: str, objects: List[Object]) -> Dict[str, Any]: Object(NonMatching, "SB/Core/x/xHudUnitMeter.cpp"), Object(Matching, "SB/Core/x/xIni.cpp"), Object(NonMatching, "SB/Core/x/xMath.cpp"), - Object(NonMatching, "SB/Core/x/xMath2.cpp"), + Object(Matching, "SB/Core/x/xMath2.cpp"), Object(NonMatching, "SB/Core/x/xMath3.cpp"), Object(NonMatching, "SB/Core/x/xMemMgr.cpp"), Object(NonMatching, "SB/Core/x/xModel.cpp"), diff --git a/src/SB/Core/x/xMath2.cpp b/src/SB/Core/x/xMath2.cpp index 2270ae58..3c84bf35 100644 --- a/src/SB/Core/x/xMath2.cpp +++ b/src/SB/Core/x/xMath2.cpp @@ -1 +1,4 @@ -#include "xMath2.h" \ No newline at end of file +#include "xMath2.h" + +const basic_rect basic_rect::m_Null = { 0.0f, 0.0f, 0.0f, 0.0f }; +const basic_rect basic_rect::m_Unit = { 0.0f, 0.0f, 1.0f, 1.0f }; \ No newline at end of file diff --git a/src/SB/Core/x/xMath2.h b/src/SB/Core/x/xMath2.h index a86bf924..81f9367d 100644 --- a/src/SB/Core/x/xMath2.h +++ b/src/SB/Core/x/xMath2.h @@ -10,8 +10,8 @@ template struct basic_rect T w; T h; - static basic_rect m_Null; - static basic_rect m_Unit; + const static basic_rect m_Null; + const static basic_rect m_Unit; basic_rect& assign(T x, T y, T w, T h); basic_rect& contract(T x, T y, T w, T h);