From b104cc036116d1f41237c6a1652b448610cf567c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 5 Feb 2023 21:59:45 +0100 Subject: [PATCH] on_dim_change clears where on sphere --- sphere.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sphere.cpp b/sphere.cpp index 88062a47..1d628132 100644 --- a/sphere.cpp +++ b/sphere.cpp @@ -172,6 +172,8 @@ struct hrmap_spherical : hrmap_standard { return Id; } + void on_dim_change() override { where.clear(); } + transmatrix relative_matrixc(cell *c2, cell *c1, const hyperpoint& hint) override { transmatrix T = iso_inverse(get_where(c1)) * get_where(c2); if(elliptic) fixelliptic(T);