From 3fe77da35fdf28eec55d6872ccd3cc5b5f754d32 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 18 Apr 2025 21:59:24 +0200 Subject: [PATCH] readd missing SHORT macro for patch_create --- src/r_patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_patch.c b/src/r_patch.c index 209b7e017..21f59401c 100644 --- a/src/r_patch.c +++ b/src/r_patch.c @@ -336,7 +336,7 @@ patch_t *Patch_Create(softwarepatch_t *source, size_t srcsize, void *dest) if (source) { INT32 col, colsize; - size_t size = sizeof(INT32) * source->width; + size_t size = sizeof(INT32) * SHORT(source->width); size_t offs = (sizeof(INT16) * 4) + size; patch->width = SHORT(source->width);