From caa8e5b8f564bd53e4471298da9849eed7cff9e9 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 19 Nov 2024 23:46:50 +0100 Subject: [PATCH] fixed crash bug when running in headless mode --- src/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/init.c b/src/init.c index 3a063ee7..a5cce8a4 100644 --- a/src/init.c +++ b/src/init.c @@ -385,6 +385,9 @@ void InitColorTemplateImages(void) void InitColorTemplateImagesIfNeeded(void) { + if (program.headless) + return; + if (anyImagehasColorTemplate()) InitColorTemplateImages(); } -- 2.34.1