1
0
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:
Zeno Rogue 2025-02-08 11:55:40 +01:00
parent 0dc842f648
commit 950bae7fa3

View File

@ -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);