mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
floorshapes clear memory
This commit is contained in:
parent
e92eda4bad
commit
7a0e8ec022
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user