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"); }