1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

floorshapes clear memory

This commit is contained in:
Zeno Rogue 2019-12-23 20:51:15 +01:00
parent e92eda4bad
commit 7a0e8ec022

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];