diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 426b210d10..ca42e91c81 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -324,12 +324,17 @@ static bool ChangeAppPri() { vector vDevices; vector vDescriptions; - INPUTMAN->GetDevicesAndDescriptions(vDevices,vDescriptions); - CString sInputDevices = join( ",", vDescriptions ); - if( sInputDevices.Find("NTPAD") != -1 ) + + // This can get called before INPUTMAN is constructed. + if( INPUTMAN ) { - LOG->Trace( "Using NTPAD. Don't boost priority." ); - return false; + INPUTMAN->GetDevicesAndDescriptions(vDevices,vDescriptions); + CString sInputDevices = join( ",", vDescriptions ); + if( sInputDevices.Find("NTPAD") != -1 ) + { + LOG->Trace( "Using NTPAD. Don't boost priority." ); + return false; + } } } #endif