mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-01 23:14:06 +00:00
replaced [0] check for a string into a size() check
This commit is contained in:
parent
0dc842f648
commit
950bae7fa3
@ -258,7 +258,7 @@ struct key_configurer {
|
||||
|
||||
getcstat = ' ';
|
||||
|
||||
for(int i=0; i<isize(shmupcmdtable); i++) if(shmupcmdtable[i][0])
|
||||
for(int i=0; i<isize(shmupcmdtable); i++) if(shmupcmdtable[i].size())
|
||||
dialog::addSelItem(XLAT(shmupcmdtable[i]), listkeys(*which_config, 16*sc+i),
|
||||
setwhat ? (setwhat>1 && i == (setwhat&15) ? '?' : 0) : 'a'+i);
|
||||
else dialog::addBreak(100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user