mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
index verification
This commit is contained in:
parent
3109d168cf
commit
5c1ae3654c
@ -311,6 +311,7 @@ EX void load(const string& fname) {
|
|||||||
}
|
}
|
||||||
else if(ep.eat("debug(")) {
|
else if(ep.eat("debug(")) {
|
||||||
int i = ep.iparse(0);
|
int i = ep.iparse(0);
|
||||||
|
verify_index(i, c.shapes, ep);
|
||||||
ep.force_eat(")");
|
ep.force_eat(")");
|
||||||
throw connection_debug_request(i);
|
throw connection_debug_request(i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user