diff --git a/Source/engine/render/clx_render.cpp b/Source/engine/render/clx_render.cpp index 5368b673f7d..05ca136cd22 100644 --- a/Source/engine/render/clx_render.cpp +++ b/Source/engine/render/clx_render.cpp @@ -405,8 +405,8 @@ void RenderClxOutline(const Surface &out, Point position, ClxSprite sprite, uint UpdateOutlinePixelsCache(sprite); --position.x; position.y -= sprite.height(); - if (position.x >= 0 && position.x + sprite.width() < out.w() - && position.y >= 0 && position.y + sprite.height() < out.h()) { + if (position.x >= 0 && position.x + sprite.width() + 2 < out.w() + && position.y >= 0 && position.y + sprite.height() + 2 < out.h()) { for (const auto &[x, y] : OutlinePixelsCache.outlinePixels) { *out.at(position.x + x, position.y + y) = color; }