fixed some memory bugs

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:38:45 +02:00
1 parent 497f7f6c0f
commit ebbaa3fcc3
4 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -314,7 +314,7 @@ void clearfrom(heptagon *at) {
}
}
int edges = at->degree();
if(binarytiling) edges = at->c7->type;
if(binarytiling && DIM == 2) edges = at->c7->type;
for(int i=0; i<edges; i++) if(at->move(i)) {
if(at->move(i)->alt != &deletion_marker)
q.push(at->move(i));