arcm:: fixed a potential crash

This commit is contained in:
Zeno Rogue 2021-02-04 15:46:45 +01:00
parent cfdf016c5d
commit e7865a62b4
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ void archimedean_tiling::compute_geometry() {
/* compute the geometry */
inradius.resize(N+1); inradius[N] = 0;
circumradius.resize(N);
circumradius.resize(N+1); circumradius[N] = 0;
alphas.resize(N);
ld elmin = 0, elmax = hyperbolic ? 10 : sphere ? M_PI : 1;