diff options
author | bunnei <bunneidev@gmail.com> | 2014-10-28 02:35:01 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-10-28 02:35:01 +0100 |
commit | a110b06fb6cca7c60af1707173686d72430c71fb (patch) | |
tree | 6d9ee09521dd15a98f9e4af33d576eb7ba245c6f /src | |
parent | Merge pull request #152 from yuriks/doxyfile (diff) | |
parent | hid.cpp: Fixed crash when updating pad data while null (diff) | |
download | yuzu-a110b06fb6cca7c60af1707173686d72430c71fb.tar yuzu-a110b06fb6cca7c60af1707173686d72430c71fb.tar.gz yuzu-a110b06fb6cca7c60af1707173686d72430c71fb.tar.bz2 yuzu-a110b06fb6cca7c60af1707173686d72430c71fb.tar.lz yuzu-a110b06fb6cca7c60af1707173686d72430c71fb.tar.xz yuzu-a110b06fb6cca7c60af1707173686d72430c71fb.tar.zst yuzu-a110b06fb6cca7c60af1707173686d72430c71fb.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/hid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/hid.cpp b/src/core/hle/service/hid.cpp index b6ec1b8ff..ef38a5603 100644 --- a/src/core/hle/service/hid.cpp +++ b/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; |