From e11fdaabf1611d40acc67c3d0d11c409cf041dcf Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Thu, 30 Sep 2021 14:27:53 -0400 Subject: [PATCH] fix unused variable warning --- Source/Core/VideoCommon/VertexLoaderARM64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/VertexLoaderARM64.cpp b/Source/Core/VideoCommon/VertexLoaderARM64.cpp index e47dd6a74e..71fc9e054c 100644 --- a/Source/Core/VideoCommon/VertexLoaderARM64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderARM64.cpp @@ -461,7 +461,7 @@ void VertexLoaderARM64::GenerateVertexLoader() const int limit = m_VtxAttr.g0.NormalElements == NormalComponentCount::NBT ? 3 : 1; s32 offset = -1; - for (int i = 0; i < (m_VtxAttr.g0.NormalElements == NormalComponentCount::NBT ? 3 : 1); i++) + for (int i = 0; i < limit; i++) { if (!i || m_VtxAttr.g0.NormalIndex3) {