Skip to content

Commit

Permalink
Correctly handle byte skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelEquinox committed Dec 21, 2016
1 parent f9e7731 commit 55eace7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gbz80aid.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,8 @@ void hex_to_joy(char* str)
}

// Keep track of the last button for correction
last = buttons[index - 1];
if (index)
last = buttons[index - 1];

// Print out the button combination for this byte
for (int x = 0; x < index; x++)
Expand Down

0 comments on commit 55eace7

Please sign in to comment.