Browse Source

Update drlg_l3.cpp

pull/513/head
Anders Jenbo 6 years ago committed by GitHub
parent
commit
73816dce93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/drlg_l3.cpp

2
Source/drlg_l3.cpp

@ -1223,11 +1223,13 @@ static void DRLG_L3Wood()
rt = random_(0, 2);
if (rt == 0) {
y1 = j;
// BUGFIX: Check `y1 >= 0` first
while (WoodVertU(i, y1)) {
y1--;
}
y1++;
y2 = j;
// BUGFIX: Check `y2 < DMAXY` first
while (WoodVertD(i, y2)) {
y2++;
}

Loading…
Cancel
Save