From 5cc58b2fcb3b60b9c52b72cf97856e962b917966 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 6 Jun 2020 18:42:34 +0200 Subject: [PATCH] arb:: verify indexes in Conway --- arbitrile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arbitrile.cpp b/arbitrile.cpp index ff0a79b1..ccb2ac42 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -371,6 +371,10 @@ EX void load(const string& fname, bool after_sliding IS(false)) { if(ep.eat("@")) bi = ep.iparse(); } if(ep.eat(")") || ep.eat("]")) {} + verify_index(ai, c.shapes, ep); + verify_index(as, c.shapes[ai], ep); + verify_index(bi, c.shapes, ep); + verify_index(bs, c.shapes[bi], ep); c.shapes[ai].connections[as] = make_tuple(bi, bs, m); c.shapes[bi].connections[bs] = make_tuple(ai, as, m); }