From 1cfe949b7c5bc79354640a42cd63425177134feb Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 16 Apr 2022 15:58:30 +0200 Subject: [PATCH] fixed crash with "autotest" due to clearing undefined bitmap rectangle --- src/libgame/system.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libgame/system.c b/src/libgame/system.c index 196e15dc..c41fbef2 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -906,6 +906,9 @@ void FadeRectangle(int x, int y, int width, int height, void FillRectangle(Bitmap *bitmap, int x, int y, int width, int height, Pixel color) { + if (program.headless) + return; + if (DrawingDeactivated(x, y, width, height)) return; -- 2.34.1