Browse Source

Fix multiple OOB in L5tileFix

Refs https://github.com/diasurgical/devilutionX/pull/401
pull/402/head^2^2
Gleb Mazovetskiy 6 years ago committed by Anders Jenbo
parent
commit
08fd0dce60
  1. 3
      Source/drlg_l1.cpp

3
Source/drlg_l1.cpp

@ -1186,6 +1186,9 @@ static void L5tileFix()
{
int i, j;
// BUGFIX: Bounds checks are required in all loop bodies.
// See https://github.com/diasurgical/devilutionX/pull/401
for (j = 0; j < DMAXY; j++) {
for (i = 0; i < DMAXX; i++) {
if (dungeon[i][j] == 2 && dungeon[i + 1][j] == 22)

Loading…
Cancel
Save