Inverted condition

This commit is contained in:
W2.Wizard
2021-02-06 20:10:22 +01:00
parent f5d1ad5a9b
commit 522e1eb769

View File

@@ -630,7 +630,7 @@ void DebugDraw::DrawLine(const Vector3& start, const Vector3& end, const Color&
void DebugDraw::DrawLines(const Span<Vector3>& lines, const Matrix& transform, const Color& color, float duration, bool depthTest)
{
if (lines.Length() % 2 == 0)
if (lines.Length() % 2 != 0)
{
DebugLog::ThrowException("Cannot draw debug lines with uneven amount of items in array");
return;