Browse Source

hid.cpp: Fixed crash when updating pad data while null

Fixes #137
pull/15/merge
archshift 11 years ago
parent
commit
366ae1b351
  1. 4
      src/core/hle/service/hid.cpp

4
src/core/hle/service/hid.cpp

@ -78,6 +78,10 @@ void PadButtonRelease(PadState pad_state) {
void PadUpdateComplete() {
PadData* pad_data = GetPadData();
if (pad_data == nullptr) {
return;
}
// Update PadData struct
pad_data->current_state.hex = next_state.hex;
pad_data->index = next_index;

Loading…
Cancel
Save