1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

rulegen:: tests:: do not crash on failure

This commit is contained in:
Zeno Rogue 2021-12-24 23:10:18 +01:00
parent 67dcda0f25
commit c160a506e6

View File

@ -801,6 +801,7 @@ void test_current(string tesname) {
if(flags & w_known_structure) { if(flags & w_known_structure) {
dynamicval<flagtype> f(rulegen::flags, sub_rulegen_flags); dynamicval<flagtype> f(rulegen::flags, sub_rulegen_flags);
prepare_rules(); prepare_rules();
if(!known()) return;
alt_treestates = treestates; alt_treestates = treestates;
pointer_indices.clear(); pointer_indices.clear();
} }