1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 22:23:18 +00:00

fixed possible crash when doing 'underlying tree' in some geometries

This commit is contained in:
Zeno Rogue 2020-05-29 02:44:14 +02:00
parent fca9834d02
commit 6a6de08ac8

View File

@ -2575,7 +2575,7 @@ EX namespace linepatterns {
if(is_master(c)) {
int dir = updir(c->master);
if(dir == -1) continue;
cell *c2 = c->master->move(dir)->c7;
cell *c2 = c->master->cmove(dir)->c7;
if(gmatrix.count(c2)) {
if(S3 >= OINF)
gridlinef(V, C0, Id, mid(tC0(V), tC0(V * currentmap->adj(c, dir))), col, 2 + vid.linequality);