diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-22 13:07:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 13:07:14 +0200 |
commit | d808697760773f8e2d2a0e5d8f71efd5310f94bc (patch) | |
tree | 1ae14c296a343670c4d9e69125a1640cd1989795 /platform/windows/joypad_windows.cpp | |
parent | 2cd36209cc748d485f3ed16ef8bc059e51904b4a (diff) | |
parent | 439c97e0ff7b33fb1fc4e63353fb046efd8476b8 (diff) |
Merge pull request #39751 from bruvzg/mingw_build_fix
Fix MinGW build (use uninitialized `ofs` variable introduced in 39701).
Diffstat (limited to 'platform/windows/joypad_windows.cpp')
-rw-r--r-- | platform/windows/joypad_windows.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/windows/joypad_windows.cpp b/platform/windows/joypad_windows.cpp index 81d0a766cb..65caee3035 100644 --- a/platform/windows/joypad_windows.cpp +++ b/platform/windows/joypad_windows.cpp @@ -211,6 +211,8 @@ void JoypadWindows::setup_joypad_object(const DIDEVICEOBJECTINSTANCE *ob, int p_ if (slider_count < 2) { ofs = DIJOFS_SLIDER(slider_count); slider_count++; + } else { + return; } } else return; |