1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 22:39:53 +00:00

fixed some problem with memory clearing in other geometries

This commit is contained in:
Zeno Rogue 2018-01-06 23:38:54 +01:00
parent 88bb63a9ca
commit 0c0f16ab12

View File

@ -840,7 +840,7 @@ heptagon deletion_marker;
void clearHexes(heptagon *at) {
if(at->c7) {
if(!nonbitrunc) for(int i=0; i<7; i++)
if(!nonbitrunc) for(int i=0; i<S7; i++)
clearcell(at->c7->mov[i]);
clearcell(at->c7);
}
@ -856,7 +856,7 @@ void clearfrom(heptagon *at) {
// if(q.size() > maxq) maxq = q.size();
q.pop();
DEBMEM ( printf("from %p\n", at); )
for(int i=0; i<7; i++) if(at->move[i]) {
for(int i=0; i<S7; i++) if(at->move[i]) {
if(at->move[i]->alt != &deletion_marker)
q.push(at->move[i]);
at->move[i]->alt = &deletion_marker;