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:
parent
e92eda4bad
commit
7a0e8ec022
@ -685,6 +685,12 @@ void geometry_information::generate_floorshapes() {
|
|||||||
int n = isize(c.shapes);
|
int n = isize(c.shapes);
|
||||||
vector<cell> models(n);
|
vector<cell> models(n);
|
||||||
vector<heptagon> modelh(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++) {
|
for(int i=0; i<n; i++) {
|
||||||
auto &ms = models[i];
|
auto &ms = models[i];
|
||||||
auto &mh = modelh[i];
|
auto &mh = modelh[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user