floorshapes clear memory

This commit is contained in:
Zeno Rogue 2019-12-23 20:51:15 +01:00
parent e92eda4bad
commit 7a0e8ec022
1 changed files with 6 additions and 0 deletions

View File

@ -685,6 +685,12 @@ void geometry_information::generate_floorshapes() {
int n = isize(c.shapes);
vector<cell> models(n);
vector<heptagon> modelh(n);
for(int i=0; i<n; i++) {
auto &ms = models[i];
auto &mh = modelh[i];
for(auto& t: ms.c.move_table) t = nullptr;
for(auto& t: mh.c.move_table) t = nullptr;
}
for(int i=0; i<n; i++) {
auto &ms = models[i];
auto &mh = modelh[i];