summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-10-14 07:18:03 +0200
committerarchshift <admin@archshift.com>2014-10-14 07:18:03 +0200
commit366ae1b351e7a22fc24e625b516c2d1877543444 (patch)
tree302dc56f751995a4e7d0985913a4ba3c2f3202d0 /src/core/hle/service/hid.cpp
parentMerge pull request #113 from neobrain/opengl_refactor (diff)
downloadyuzu-366ae1b351e7a22fc24e625b516c2d1877543444.tar
yuzu-366ae1b351e7a22fc24e625b516c2d1877543444.tar.gz
yuzu-366ae1b351e7a22fc24e625b516c2d1877543444.tar.bz2
yuzu-366ae1b351e7a22fc24e625b516c2d1877543444.tar.lz
yuzu-366ae1b351e7a22fc24e625b516c2d1877543444.tar.xz
yuzu-366ae1b351e7a22fc24e625b516c2d1877543444.tar.zst
yuzu-366ae1b351e7a22fc24e625b516c2d1877543444.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid.cpp4
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;