From da17ec4f11e27d24d21169350da433b047939578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Wed, 12 Jun 2024 18:30:14 +0200 Subject: [PATCH] Fix void return value on a void function --- src/SFML/Window/Win32/JoystickImpl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SFML/Window/Win32/JoystickImpl.cpp b/src/SFML/Window/Win32/JoystickImpl.cpp index 4834bb891..0d8e5ce51 100644 --- a/src/SFML/Window/Win32/JoystickImpl.cpp +++ b/src/SFML/Window/Win32/JoystickImpl.cpp @@ -274,7 +274,10 @@ void JoystickImpl::setLazyUpdates(bool status) void JoystickImpl::updateConnections() { if (directInput) - return updateConnectionsDInput(); + { + updateConnectionsDInput(); + return; + } for (unsigned int i = 0; i < Joystick::Count; ++i) {