mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-07 00:04:30 +00:00
fixed a potential crash in infinite-order tilings
This commit is contained in:
1 parent
58a2859146
commit
a6b5ef38fa
1 file changed
+4
-1
+4
-1
@@ -30,7 +30,10 @@ EX namespace inforder {
|
||||
|
||||
h1->s = hsA;
|
||||
h1->distance = h->distance + (par ? -1 : 1);
|
||||
h1->c7 = newCell(deg, h1);
|
||||
if(h->c7)
|
||||
h1->c7 = newCell(deg, h1);
|
||||
else
|
||||
h1->c7 = nullptr;
|
||||
|
||||
return h1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user