mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Fix typo in PencilAction.
This commit is contained in:
parent
f3a3fdfd75
commit
1ca15c44e4
@ -27,6 +27,7 @@ SOFTWARE.
|
||||
#include "../paint_canvas.h"
|
||||
#include "../paint_canvas_layer.h"
|
||||
#include "../paint_utilities.h"
|
||||
#include "core/print_string.h"
|
||||
|
||||
void PencilAction::do_action(PaintCanvas *canvas, const Array &data) {
|
||||
PaintAction::do_action(canvas, data);
|
||||
@ -41,7 +42,7 @@ void PencilAction::do_action(PaintCanvas *canvas, const Array &data) {
|
||||
PoolVector2iArray points = get_points(canvas, pixel);
|
||||
|
||||
for (int j = 0; j < points.size(); ++j) {
|
||||
Vector2i p = points[i];
|
||||
Vector2i p = points[j];
|
||||
|
||||
_set_pixel(canvas, p, c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user