From 11d73bb65500c92b48e7a9340eeab07d2062bb1b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 9 Jul 2021 10:10:44 +0200 Subject: [PATCH] reg3:: throw exceptions if not cubes --- reg3.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reg3.cpp b/reg3.cpp index c68dd192..32aeae05 100644 --- a/reg3.cpp +++ b/reg3.cpp @@ -288,6 +288,7 @@ EX namespace reg3 { } EX void generate_plain_subcubes() { + if(S7 != 6) throw hr_exception("generate_plain_subcubes but no cubes"); auto& ssh = cgi.subshapes; const int sub = subcube_count; auto vx = abs(cgi.cellshape[0][0][0]); @@ -372,6 +373,7 @@ EX namespace reg3 { } EX void generate_special_subcubes(bool bch) { + if(S7 != 6) throw hr_exception("generate_plain_subcubes but no cubes"); const int sub = subcube_count; if(1) { auto vx = abs(cgi.cellshape[0][0][0]);