diff --git a/src/SFML/Window/Cocoa/Joystick.cpp b/src/SFML/Window/Cocoa/Joystick.cpp index ff2a353a..f65ac736 100644 --- a/src/SFML/Window/Cocoa/Joystick.cpp +++ b/src/SFML/Window/Cocoa/Joystick.cpp @@ -49,7 +49,7 @@ void Joystick::Initialize(unsigned int Index) JoystickState Joystick::UpdateState() { // Fill a JoystickState instance with the current joystick state - JoystickState s = {0}; + JoystickState s; return s; }