Fix use uninitialized `ofs` variable introduced in 39701.
(cherry picked from commit 439c97e0ff
)
This commit is contained in:
parent
8fd861ab11
commit
a662b853dd
|
@ -220,6 +220,8 @@ void JoypadWindows::setup_joypad_object(const DIDEVICEOBJECTINSTANCE *ob, int p_
|
||||||
if (slider_count < 2) {
|
if (slider_count < 2) {
|
||||||
ofs = DIJOFS_SLIDER(slider_count);
|
ofs = DIJOFS_SLIDER(slider_count);
|
||||||
slider_count++;
|
slider_count++;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue