diff --git a/Source/lighting.cpp b/Source/lighting.cpp index 9cd419934..20d296d3e 100644 --- a/Source/lighting.cpp +++ b/Source/lighting.cpp @@ -678,7 +678,7 @@ void DoVision(int nXPos, int nYPos, int nRadius, bool doautomap, bool visible) if (nXPos >= 0 && nXPos <= MAXDUNX && nYPos >= 0 && nYPos <= MAXDUNY) { if (doautomap) { if (dFlags[nXPos][nYPos] >= 0) { - SetAutomapView(nXPos, nXPos); + SetAutomapView(nXPos, nYPos); } dFlags[nXPos][nYPos] |= BFLAG_EXPLORED; }