home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replaced obsolete end-of-list detection with new one.
[plomrogue]
/
roguelike.c
diff --git
a/roguelike.c
b/roguelike.c
index 34f3c855da6c9d2927bfad84e73ff11fe207f4e7..7d535bc9221b7ea446ad2f1128570ade548ad017 100644
(file)
--- 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;