From 3626759011ec91cacca0c4e03a298f1f54cbc533 Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Mon, 2 Aug 2021 10:28:33 +0200 Subject: [PATCH] gendung: update out-of-bounds BUGFIX comment of DRLG_WillThemeRoomFit --- Source/gendung.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/gendung.cpp b/Source/gendung.cpp index 1152fad31..277d5ff5f 100644 --- a/Source/gendung.cpp +++ b/Source/gendung.cpp @@ -798,7 +798,7 @@ BOOL DRLG_WillThemeRoomFit(int floor, int x, int y, int minSize, int maxSize, in xCount = 0; yCount = 0; - // BUGFIX: change '&&' to '||' + // BUGFIX: incorrect out-of-bounds check, should check that `dungeon[xx][y + ii]` is not out-of-bounds in loop. if (x > DMAXX - maxSize && y > DMAXY - maxSize) { return FALSE; }