diff options
author | Will Jordan <will.jordan@pluckybytes.com> | 2021-11-16 21:10:19 +0100 |
---|---|---|
committer | Will Jordan <will.jordan@pluckybytes.com> | 2021-11-17 15:13:53 +0100 |
commit | 283e31a3e23a2b11ccbb9879b4832abef6ded50f (patch) | |
tree | 7838e30d3f72788ea31a0f8aca5898f66499e72c /platform/osx/joypad_osx.h | |
parent | 5045f46a5c384d83504be3d0cf101e403700b1e3 (diff) | |
download | redot-engine-283e31a3e23a2b11ccbb9879b4832abef6ded50f.tar.gz |
Fix crash on macOS (AS) when dualshock4 is removed
Diffstat (limited to 'platform/osx/joypad_osx.h')
-rw-r--r-- | platform/osx/joypad_osx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/joypad_osx.h b/platform/osx/joypad_osx.h index 3048ecf39e..2ba7f0d950 100644 --- a/platform/osx/joypad_osx.h +++ b/platform/osx/joypad_osx.h @@ -68,8 +68,8 @@ struct joypad { io_service_t ffservice = 0; /* Interface for force feedback, 0 = no ff */ FFCONSTANTFORCE ff_constant_force; - FFDeviceObjectReference ff_device; - FFEffectObjectReference ff_object; + FFDeviceObjectReference ff_device = nullptr; + FFEffectObjectReference ff_object = nullptr; uint64_t ff_timestamp = 0; LONG *ff_directions = nullptr; FFEFFECT ff_effect; |