fix hold-only mappings

This commit is contained in:
Glenn Maynard
2005-03-12 00:51:09 +00:00
parent 088b91b959
commit fe513d047f
+4 -1
View File
@@ -292,7 +292,10 @@ bool ScreenEdit::EditToDevice( EditButton button, int iSlotNum, DeviceInput &Dev
{ {
ASSERT( iSlotNum < NUM_EDIT_TO_DEVICE_SLOTS ); ASSERT( iSlotNum < NUM_EDIT_TO_DEVICE_SLOTS );
const MapEditToDI *pCurrentMap = GetCurrentMap(); const MapEditToDI *pCurrentMap = GetCurrentMap();
DeviceI = pCurrentMap->button[button][iSlotNum]; if( pCurrentMap->button[button][iSlotNum].IsValid() )
DeviceI = pCurrentMap->button[button][iSlotNum];
else if( pCurrentMap->hold[button][iSlotNum].IsValid() )
DeviceI = pCurrentMap->hold[button][iSlotNum];
return DeviceI.IsValid(); return DeviceI.IsValid();
} }