From f68d921d4cd8d0a5dc24b1c1b6f3b0881ff47892 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Fri, 25 Jan 2013 18:02:57 -0500 Subject: [PATCH] we don't need an extra variable here --- src/StepMania.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/StepMania.cpp b/src/StepMania.cpp index 1cf6a14ead..16b46a8a95 100644 --- a/src/StepMania.cpp +++ b/src/StepMania.cpp @@ -626,9 +626,9 @@ bool CheckVideoDefaultSettings() LOG->Trace( "Last seen video driver: %s", PREFSMAN->m_sLastSeenVideoDriver.Get().c_str() ); VideoCardDefaults defaults; - bool found = false; - for( unsigned i=0; iTrace( "Card matches '%s'.", sDriverRegex.size()? sDriverRegex.c_str():"(unknown card)" ); - found = true; break; } } - if (!found) + if (i >= ARRAYLEN(g_VideoCardDefaults)) { FAIL_M("Failed to match video driver"); }