VERY experimental Nintendo Switch 2 emulator
C++
math_util: Always initialize members of Rectangle
Lioncash9f5ba9df9586
diff --git a/src/common/math_util.h b/src/common/math_util.hindex c6a83c9539..343cdd902f 100644--- a/src/common/math_util.h+++ b/src/common/math_util.h@@ -19,12 +19,12 @@ inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned starttemplate <class T>struct Rectangle {- T left;- T top;- T right;- T bottom;+ T left{};+ T top{};+ T right{};+ T bottom{};- Rectangle() {}+ Rectangle() = default;Rectangle(T left, T top, T right, T bottom): left(left), top(top), right(right), bottom(bottom) {}