From 54ab3d3bc7b94144a0bdafd677b12a3fbdff6fe3 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 21 Oct 2019 21:13:03 +0200 Subject: [PATCH] Fix typo. --- texture_packer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/texture_packer.cpp b/texture_packer.cpp index d86934a..c995755 100644 --- a/texture_packer.cpp +++ b/texture_packer.cpp @@ -111,7 +111,7 @@ void TexturePacker::merge() { int indx = 0; for (int y = 0; y < r->h; ++y) { - int start_indx = r->y + y * (b.size.w) * 4 + (r->x * 4); + int start_indx = (r->y + y) * b.size.w * 4 + (r->x * 4); int row_width = r->w * 4; for (int x = 0; x < row_width; ++x) {