Browse Source

[diablo/hellfire] 🐛 Correct unitialized variable in AddVision

pull/1108/head
qndel 5 years ago committed by Anders Jenbo
parent
commit
1b304e7bb3
  1. 2
      Source/lighting.cpp

2
Source/lighting.cpp

@ -1173,7 +1173,7 @@ void InitVision()
int AddVision(int x, int y, int r, BOOL mine)
{
int vid; // BUGFIX: if numvision >= MAXVISION behavior is undefined
int vid = -1; // BUGFIX: if numvision >= MAXVISION behavior is undefined
if (numvision < MAXVISION) {
VisionList[numvision]._lx = x;

Loading…
Cancel
Save