mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Backport "bind showkeys" osdcmd crash fix from eduke32
This commit is contained in:
parent
ce61c38660
commit
0d2567a808
1 changed files with 2 additions and 2 deletions
|
@ -500,8 +500,8 @@ static int osdcmd_bind(osdcmdptr_t parm)
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
if (parm->numparms==1 && !Bstrcasecmp(parm->parms[0],"showkeys"))
|
if (parm->numparms==1 && !Bstrcasecmp(parm->parms[0],"showkeys"))
|
||||||
{
|
{
|
||||||
for (int i=0; sctokeylut[i].key; i++)
|
for (auto & s : sctokeylut)
|
||||||
OSD_Printf("%s\n",sctokeylut[i].key);
|
OSD_Printf("%s\n", s.key);
|
||||||
for (auto ConsoleButton : ConsoleButtons)
|
for (auto ConsoleButton : ConsoleButtons)
|
||||||
OSD_Printf("%s\n",ConsoleButton);
|
OSD_Printf("%s\n",ConsoleButton);
|
||||||
return OSDCMD_OK;
|
return OSDCMD_OK;
|
||||||
|
|
Loading…
Reference in a new issue