From: Christian Heller Date: Thu, 2 May 2013 00:03:41 +0000 (+0200) Subject: Replaced obsolete end-of-list detection with new one. X-Git-Tag: tce~1324 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/do_day?a=commitdiff_plain;h=493ae380d5200e00b8648fcb334e39148126676f;p=plomrogue Replaced obsolete end-of-list detection with new one. --- diff --git a/roguelike.c b/roguelike.c index 34f3c85..7d535bc 100644 --- a/roguelike.c +++ b/roguelike.c @@ -218,7 +218,7 @@ void draw_keys_window (struct Win * win) { attr_t attri; int y, x; char * keyname; - for (y = 0; 0 != keybindings[offset + y].name && y < win->height; y++) { + for (y = 0; y <= keyswindata->max && y < win->height; y++) { attri = 0; if (y == keyswindata->select - offset) { attri = A_REVERSE;