diff --git a/stepmania/src/arch/InputHandler/InputHandler_MonkeyKeyboard.cpp b/stepmania/src/arch/InputHandler/InputHandler_MonkeyKeyboard.cpp index 352eaaa6d5..4a3011366a 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_MonkeyKeyboard.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_MonkeyKeyboard.cpp @@ -73,8 +73,11 @@ void InputHandler_MonkeyKeyboard::Update() if( fSecsAgo > 0.5 ) { - // End the previous key - ButtonPressed( m_diLast, false ); + if( m_diLast.IsValid() ) + { + // End the previous key + ButtonPressed( m_diLast, false ); + } // Choose a new key and send it. m_diLast = DeviceInput( DEVICE_KEYBOARD, GetRandomKeyboardKey() );