From aead9c172c52d2265154daa5a958e968d9bdf390 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 27 Mar 2005 00:33:31 +0000 Subject: [PATCH] cleanup --- stepmania/src/ScreenEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 3aa43ebdd8..938817a46e 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -220,7 +220,7 @@ bool ScreenEdit::DeviceToEdit( DeviceInput DeviceI, EditButton &button ) const for( int holdslot = 0; holdslot < NUM_EDIT_TO_DEVICE_SLOTS; ++holdslot ) { DeviceInput hDI = pCurrentMap->hold[e][holdslot]; - if( INPUTFILTER->IsBeingPressed(hDI) ) + if( hDI.IsValid() && INPUTFILTER->IsBeingPressed(hDI) ) return true; } }