Skip to content

Commit

Permalink
Merge pull request #1719 from RobLoach/mouse-array
Browse files Browse the repository at this point in the history
squirrel: Fix mouse() from returning null values
  • Loading branch information
nesbox authored Dec 6, 2021
2 parents d6389ae + bad14fe commit 60c742f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/squirrel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ static SQInteger squirrel_mouse(HSQUIRRELVM vm)

const tic80_mouse* mouse = &core->memory.ram.input.mouse;

sq_newarray(vm, 7);
sq_newarray(vm, 0);

{
tic_point pos = tic_api_mouse((tic_mem*)core);
Expand Down

0 comments on commit 60c742f

Please sign in to comment.