Fix typo.

This commit is contained in:
Relintai 2019-10-21 21:13:03 +02:00
parent a0fe53dc24
commit 54ab3d3bc7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {