diff --git a/src/StepMania.cpp b/src/StepMania.cpp index 47c607bfce..1cf6a14ead 100644 --- a/src/StepMania.cpp +++ b/src/StepMania.cpp @@ -626,6 +626,7 @@ 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)" ); - goto found_defaults; + found = true; + break; } } - FAIL_M("Failed to match video driver"); - -found_defaults: + if (!found) + { + FAIL_M("Failed to match video driver"); + } bool bSetDefaultVideoParams = false; if( PREFSMAN->m_sVideoRenderers.Get() == "" )