1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +00:00

arcm:: fixed a potential crash

This commit is contained in:
Zeno Rogue 2021-02-04 15:46:45 +01:00
parent cfdf016c5d
commit e7865a62b4

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;