diff --git a/src/common/math/Vec2.h b/src/common/math/Vec2.h index 9108b7b1..139fab47 100644 --- a/src/common/math/Vec2.h +++ b/src/common/math/Vec2.h @@ -9,6 +9,15 @@ struct Vec2 { constexpr explicit Vec2() = default; constexpr Vec2(T inX, T inY) : x(inX), y(inY) {} +#ifdef _MSC_VER + // MSVC has skill issues + template + constexpr Vec2(U inX, U inY) + : x(static_cast(inX)) + , y(static_cast(inY)) + {} +#endif + static constexpr Vec2 zero() { return Vec2(); }