From 4813832b928c3834c837496d44f528538d6dc1b0 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 18 Apr 2022 19:34:52 +0200 Subject: [PATCH] Fix shadowed declaration warning. --- modules/paint/actions/brush_action.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/paint/actions/brush_action.cpp b/modules/paint/actions/brush_action.cpp index c16f6c558..74a547a4c 100644 --- a/modules/paint/actions/brush_action.cpp +++ b/modules/paint/actions/brush_action.cpp @@ -39,8 +39,8 @@ void BrushAction::do_action(PaintCanvas *canvas, const Array &data) { for (int i = 0; i < pixels.size(); ++i) { Vector2i pixel = pixels[i]; - for (int i = 0; i < brush.size(); ++i) { - Vector2i off = brush[i]; + for (int j = 0; j < brush.size(); ++j) { + Vector2i off = brush[j]; Vector2i p = pixel + off; if (undo_cells.contains(p)) {