From: Holger Schemel Date: Tue, 19 Nov 2024 22:46:50 +0000 (+0100) Subject: fixed crash bug when running in headless mode X-Git-Tag: 4.4.0.0-test-4~39 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=caa8e5b8f564bd53e4471298da9849eed7cff9e9;p=rocksndiamonds.git fixed crash bug when running in headless mode --- 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(); }