1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-22 09:11:22 +00:00

Don't crash when manually entering pinned glyph config

This commit is contained in:
Joseph C. Sible
2025-10-12 22:00:26 -04:00
parent f061dd6cf6
commit 7cdc58f852

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(","));
}
}