1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-14 00:59:43 +00:00

Merge pull request #477 from josephcsible/iparsecrash

Don't crash when manually entering pinned glyph config
This commit is contained in:
Zeno Rogue
2025-10-13 09:13:12 +02:00
committed by GitHub

View File

@@ -88,8 +88,13 @@ EX void updateglyphpinned() {
exp_parser ep;
ep.s = pinnedglyphs;
do {
int i = ep.iparse();
if(i >= 0 && i < glyphs) glyphpinned[i] = true;
try {
int i = ep.iparse();
if(i >= 0 && i < glyphs) glyphpinned[i] = true;
}
catch(hr_parse_exception&) {
continue;
}
} while(ep.eat(","));
}
}