X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=src%2Fclient%2Fdraw_wins.c;h=c61576c0370679d80ebafdfbeb08c3a71dfa4064;hb=5017468632ebf51485743c7d71b569c78ab0cf7f;hp=90d6519611a3ef8a7aaecf54c4cabe4ba8c05030;hpb=3662e86043fe642641164499f0aa5c256ed393d6;p=plomrogue
diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c
index 90d6519..c61576c 100644
--- a/src/client/draw_wins.c
+++ b/src/client/draw_wins.c
@@ -8,7 +8,7 @@
#include /* strlen(), strtok() */
#include "../common/try_malloc.h" /* for try_malloc() */
#include "command_db.h" /* for get_command_longdsc */
-#include "keybindings.h" /* struct KeyBinding, get_name_to_keycode() */
+#include "keybindings.h" /* struct KeyBinding, get_keyname_to_keycode() */
#include "wincontrol.h" /* struct WinConf, get_winconf_by_win() */
#include "windows.h" /* struct Win */
#include "world.h" /* global world */
@@ -236,8 +236,8 @@ static char * get_kb_line_and_iterate(struct KeyBinding ** kb_pp)
{
char * f_name = "get_kb_line_and_iterate()";
struct KeyBinding * kb_p = * kb_pp;
- char * keyname = get_name_to_keycode(kb_p->key);
- char * cmd_dsc = get_command_longdsc(kb_p->name);
+ char * keyname = get_keyname_to_keycode(kb_p->key);
+ char * cmd_dsc = get_command_longdsc(kb_p->command);
uint16_t size = 9 + 1 + strlen(cmd_dsc) + 1;
char * line = try_malloc(size, f_name);
sprintf(line, "%-9s %s", keyname, cmd_dsc);