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

fixed a crash bug on loading file tessellations

This commit is contained in:
Zeno Rogue 2019-12-27 23:38:28 +01:00
parent d3d1d689fa
commit e00e117278

View File

@ -701,6 +701,11 @@ void geometry_information::generate_floorshapes() {
mh.zebraval = i;
auto& sh = c.shapes[i];
ms.type = mh.type = sh.size();
}
for(int i=0; i<n; i++) {
auto &ms = models[i];
auto &mh = modelh[i];
auto& sh = c.shapes[i];
for(int j=0; j<sh.size(); j++) {
auto& co = sh.connections[j];
mh.c.connect(j, &modelh[get<0>(co)], get<1>(co), get<2>(co));