From 914478234e09c4bd037e9de562865758df05cf4d Mon Sep 17 00:00:00 2001 From: Fralacticus <50240332+Fralacticus@users.noreply.github.com> Date: Sun, 18 Jan 2026 18:56:41 +0100 Subject: [PATCH] Fix unconditional insertion of zero-filled tile at start of tileset --- cldib/cldib_tmap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cldib/cldib_tmap.cpp b/cldib/cldib_tmap.cpp index f05fe41..e911473 100644 --- a/cldib/cldib_tmap.cpp +++ b/cldib/cldib_tmap.cpp @@ -209,9 +209,8 @@ bool tmap_init_from_dib(Tilemap *tm, CLDIB *dib, int tileW, int tileH, } else { - rdxN= 1; + rdxN = 0; rdx = dib_alloc(tileW, (mapN+rdxN)*tileH, dibB, NULL); - memset(dib_get_img(rdx), 0, dib_get_pitch(rdx)*tileH); dib_pal_cpy(rdx, dib); }