From: Holger Schemel Date: Sat, 3 Sep 2022 10:20:52 +0000 (+0200) Subject: fixed compiler warning X-Git-Tag: 4.3.3.0~65 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=be67d1006daf16c03611f0d49b64e783623ce130;p=rocksndiamonds.git fixed compiler warning --- diff --git a/src/files.c b/src/files.c index e8de1142..cdb890b9 100644 --- a/src/files.c +++ b/src/files.c @@ -13559,7 +13559,9 @@ void CreateCollectElementImages(void) Info("Converting image file from BMP to PNG ..."); - system(cmd_convert); + if (system(cmd_convert) != 0) + Fail("converting image file failed"); + unlink(filename_bmp); Info("Done.");