fix assert on bogus values in keymaps.ini
This commit is contained in:
@@ -1094,6 +1094,8 @@ void InputMappings::ReadMappings( const InputScheme *pInputScheme, RString sFile
|
|||||||
|
|
||||||
GameInput GameI;
|
GameInput GameI;
|
||||||
GameI.FromString( pInputScheme, name );
|
GameI.FromString( pInputScheme, name );
|
||||||
|
if( !GameI.IsValid() )
|
||||||
|
continue;
|
||||||
|
|
||||||
vector<RString> sDeviceInputStrings;
|
vector<RString> sDeviceInputStrings;
|
||||||
split( value, DEVICE_INPUT_SEPARATOR, sDeviceInputStrings, false );
|
split( value, DEVICE_INPUT_SEPARATOR, sDeviceInputStrings, false );
|
||||||
|
|||||||
Reference in New Issue
Block a user