ensure "rawconv" is nulled before reuse

otherwise there might be some leftovers from earlier calls
This commit is contained in:
Alug committed 2025-09-25 03:44:24 +02:00
1 parent 4613ec48b3
commit 2c73593fcd
1 file changed
+4
+4
View File
@@ -241,6 +241,10 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle
rawconv = Z_Calloc(size * sizeof(UINT16), PU_STATIC, NULL);
conv_capacity = size;
}
else
{
memset(rawconv, 0, conv_capacity * sizeof(UINT16));
}
src = &rawdst[(miny * newwidth) + minx];
dest = rawconv;