diff --git a/include/SFML/System/Vector2.inl b/include/SFML/System/Vector2.inl index aefe81c3..73ad1bab 100644 --- a/include/SFML/System/Vector2.inl +++ b/include/SFML/System/Vector2.inl @@ -94,8 +94,8 @@ constexpr Vector2 Vector2::cwiseMul(const Vector2& rhs) const template constexpr Vector2 Vector2::cwiseDiv(const Vector2& rhs) const { - assert(rhs.x != 0); - assert(rhs.y != 0); + assert(rhs.x != 0 && "Vector2::cwiseDiv() cannot divide by 0"); + assert(rhs.y != 0 && "Vector2::cwiseDiv() cannot divide by 0"); return Vector2(x / rhs.x, y / rhs.y); }