From 73816dce938a82ec2a50659eee47b4d348e6d9fa Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 4 Dec 2019 23:45:29 +0100 Subject: [PATCH] Update drlg_l3.cpp --- Source/drlg_l3.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/drlg_l3.cpp b/Source/drlg_l3.cpp index 75692b16d..5c0a85268 100644 --- a/Source/drlg_l3.cpp +++ b/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++; }