Skip to content

Commit

Permalink
dun_render: Fix OOB in world_draw_black_tile
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm authored Aug 20, 2024
1 parent ef498f2 commit cc8a0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/engine/render/dun_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ void world_draw_black_tile(const Surface &out, int sx, int sy)
}
if (clipRight.width > 0) {
uint8_t *dst = out.at(static_cast<int>(sx + Width + clipRight.left), static_cast<int>(sy - clipRight.bottom));
RenderRightTriangle<LightType::FullyDark, /*Transparent=*/false>(dst + Width, dstPitch, nullptr, nullptr, clipRight);
RenderRightTriangle<LightType::FullyDark, /*Transparent=*/false>(dst, dstPitch, nullptr, nullptr, clipRight);
}
}

Expand Down

0 comments on commit cc8a0f4

Please sign in to comment.