summaryrefslogtreecommitdiffstats
path: root/platform/osx/joypad_osx.h
diff options
context:
space:
mode:
authorWill Jordan <will.jordan@pluckybytes.com>2021-11-16 21:10:19 +0100
committerWill Jordan <will.jordan@pluckybytes.com>2021-11-17 15:13:53 +0100
commit283e31a3e23a2b11ccbb9879b4832abef6ded50f (patch)
tree7838e30d3f72788ea31a0f8aca5898f66499e72c /platform/osx/joypad_osx.h
parent5045f46a5c384d83504be3d0cf101e403700b1e3 (diff)
downloadredot-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.h4
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;