From d188972ac1e3fdad944e7b60436ff1da24c573f2 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Mon, 6 Nov 2023 17:26:49 +0100 Subject: [PATCH] bugfix: fixed crash if Restart was pressed --- src/osdep/amiberry_input.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osdep/amiberry_input.cpp b/src/osdep/amiberry_input.cpp index e5388110c..f6cf18382 100644 --- a/src/osdep/amiberry_input.cpp +++ b/src/osdep/amiberry_input.cpp @@ -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;