diff --git a/Source/lighting.cpp b/Source/lighting.cpp index 09747aeb2..95a1956ef 100644 --- a/Source/lighting.cpp +++ b/Source/lighting.cpp @@ -1156,9 +1156,7 @@ void InitVision() int AddVision(int x, int y, int r, BOOL mine) { - int vid; - - vid = r; + int vid; // BUGFIX: if numvision >= MAXVISION behavior is undefined if (numvision < MAXVISION) { VisionList[numvision]._lx = x;