1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-21 08:57:39 +00:00

arcm:: fixed the possible crash on deleting arcms with large cells, because of the confusion of cdata

This commit is contained in:
Zeno Rogue
2021-07-04 11:00:38 +02:00
parent f873a4ba18
commit e37fa65247
4 changed files with 6 additions and 14 deletions

View File

@@ -585,10 +585,6 @@ struct hrmap_archimedean : hrmap {
}
~hrmap_archimedean() {
if(hyperbolic) for(auto& p: archimedean_gmatrix) if(p.second.first->cdata) {
delete p.second.first->cdata;
p.second.first->cdata = NULL;
}
clearfrom(origin);
altmap.clear();
archimedean_gmatrix.clear();