diff --git a/Source/engine/render/dun_render.cpp b/Source/engine/render/dun_render.cpp index 9845039d1..d93120b5b 100644 --- a/Source/engine/render/dun_render.cpp +++ b/Source/engine/render/dun_render.cpp @@ -1143,7 +1143,7 @@ void RenderTile(const Surface &out, Point position, if (clip.width <= 0 || clip.height <= 0) return; - const uint8_t *tbl = LightTables[LightTableIndex].data(); + const uint8_t *tbl = LightTables[lightTableIndex].data(); const auto *pFrameTable = reinterpret_cast(pDungeonCels.get()); const auto *src = reinterpret_cast(&pDungeonCels[SDL_SwapLE32(pFrameTable[levelCelBlock.frame()])]); uint8_t *dst = out.at(static_cast(position.x + clip.left), static_cast(position.y - clip.bottom));