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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user