Browse Source

gendung: update out-of-bounds BUGFIX comment of DRLG_WillThemeRoomFit

pull/5295/head
Robin Eklind 5 years ago committed by Anders Jenbo
parent
commit
3626759011
  1. 2
      Source/gendung.cpp

2
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;
}

Loading…
Cancel
Save