From 73a9a85bc943819dffc33d27fc9783371b161681 Mon Sep 17 00:00:00 2001 From: iam13islucky Date: Sun, 23 Apr 2017 22:51:35 -0600 Subject: [PATCH] [3.0] Fix bug in Image::_get_pixelb Fixes issue: https://github.com/godotengine/godot/issues/8158 --- core/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/image.cpp b/core/image.cpp index 5fb7cfa812c..8a09dc1a8c9 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -94,7 +94,7 @@ void Image::_get_pixelb(int p_x, int p_y, uint32_t p_pixelsize, const uint8_t *p uint32_t ofs = (p_y * width + p_x) * p_pixelsize; for (uint32_t i = 0; i < p_pixelsize; i++) { - p_dst[ofs] = p_src[ofs + i]; + p_dst[i] = p_src[ofs + i]; } }