Skip to content

Commit

Permalink
bugfix: fixed crash if Restart was pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Nov 6, 2023
1 parent 67bb4cc commit d188972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osdep/amiberry_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ static void addplusminus(struct didata* did, int i)
if (did->buttons + 1 >= ID_BUTTON_TOTAL)
return;
for (uae_s16 j = 0; j < 2; j++) {
did->buttonname[did->buttons] = did->axisname[i] + " [";
did->buttonname[did->buttons] = did->axisname[i];
if (j)
did->buttonname[did->buttons] += "+]";
did->buttonname[did->buttons] += " [+]";
else
did->buttonname[did->buttons] += "-]";
did->buttonname[did->buttons] += " [-]";
did->buttonmappings[did->buttons] = did->axismappings[i];
did->buttonsort[did->buttons] = 1000 + (did->axismappings[i] + did->axistype[i]) * 2 + j;
did->buttonaxisparent[did->buttons] = i;
Expand Down

0 comments on commit d188972

Please sign in to comment.