Skip to content

Commit bb4f1dd

Browse files
author
badlydrawnrod
authored
[GLFW] Fix crash when using gamepad (#12984)
Background: it looks like #12279 missed one of the uses of allocate in GLFW.
1 parent f263265 commit bb4f1dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,3 +528,4 @@ a license to everyone to use it as detailed in LICENSE.)
528528
* Ivan Romanovski <[email protected]>
529529
* Max Brunsfeld <[email protected]>
530530
* Basil Fierz <[email protected]>
531+
* Rod Hyde <[email protected]>

src/library_glfw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ var LibraryGLFW = {
652652
buttonsCount: gamepad.buttons.length,
653653
axesCount: gamepad.axes.length,
654654
buttons: allocate(new Array(gamepad.buttons.length), ALLOC_NORMAL),
655-
axes: allocate(new Array(gamepad.axes.length*4), 'float', ALLOC_NORMAL)
655+
axes: allocate(new Array(gamepad.axes.length*4), ALLOC_NORMAL)
656656
};
657657

658658
if (GLFW.joystickFunc) {

0 commit comments

Comments
 (0)