From 4a26db17b1b330927fb35fef77a45d2c496169ca Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 24 Mar 2009 13:35:55 +0000 Subject: [PATCH] fix assert on bogus values in keymaps.ini --- stepmania/src/InputMapper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/InputMapper.cpp b/stepmania/src/InputMapper.cpp index 5ce3f4190f..b219d504ef 100644 --- a/stepmania/src/InputMapper.cpp +++ b/stepmania/src/InputMapper.cpp @@ -1094,6 +1094,8 @@ void InputMappings::ReadMappings( const InputScheme *pInputScheme, RString sFile GameInput GameI; GameI.FromString( pInputScheme, name ); + if( !GameI.IsValid() ) + continue; vector sDeviceInputStrings; split( value, DEVICE_INPUT_SEPARATOR, sDeviceInputStrings, false );