1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-31 17:39:03 +00:00

Merge pull request #486 from josephcsible/freefallhorodisk

Fix Free Fall crashing in horodisk land structure
This commit is contained in:
Zeno Rogue
2025-12-11 10:30:34 +01:00
committed by GitHub

View File

@@ -224,7 +224,7 @@ EX namespace westwall {
void build(vector<cell*>& whirlline, int d) {
again:
cell *at = whirlline[isize(whirlline)-1];
cell *prev = whirlline[isize(whirlline)-2];
cell *prev = isize(whirlline) >= 2 ? whirlline[isize(whirlline)-2] : NULL;
if(looped(whirlline)) return;
for(int i=0; i<at->type; i++)
if(at->move(i) && coastvalEdge1(at->move(i)) == d && at->move(i) != prev) {