mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
arb:: error when unrecognized command, instead of hanging
This commit is contained in:
parent
ab283002f1
commit
07bca8059d
@ -135,6 +135,7 @@ void load(const string& fname) {
|
|||||||
c.shapes[ai].connections[as] = {bi, bs, m};
|
c.shapes[ai].connections[as] = {bi, bs, m};
|
||||||
c.shapes[bi].connections[bs] = {ai, as, m};
|
c.shapes[bi].connections[bs] = {ai, as, m};
|
||||||
}
|
}
|
||||||
|
else throw hr_parse_exception("expecting command");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user