From 4dbc11800ee8ec27dbe1b9abf81493d1c544a179 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 5 Sep 2015 11:30:59 -0300 Subject: [PATCH] Hopefully fixed the Windows/VS2013 build. --- src/modules/joystick/sdl/Joystick.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/joystick/sdl/Joystick.h b/src/modules/joystick/sdl/Joystick.h index 7999d2f83..59fd98882 100644 --- a/src/modules/joystick/sdl/Joystick.h +++ b/src/modules/joystick/sdl/Joystick.h @@ -109,10 +109,14 @@ private: float left = 0.0f; float right = 0.0f; SDL_HapticEffect effect = {}; - Uint16 data[4] = {0}; + Uint16 data[4]; int id = -1; Uint32 endtime = SDL_HAPTIC_INFINITY; + Vibration() + : data() // VS2013 can't initialize the array above... + {} + } vibration; static EnumMap::Entry hatEntries[];