From 51bca66d886da1bd180844a22a755dc488701504 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 7 Aug 2021 21:12:59 +0200 Subject: [PATCH] fixed reading boolean values from files that are neither 0 nor 1 --- src/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index f838f666..e9cd8113 100644 --- a/src/files.c +++ b/src/files.c @@ -3160,7 +3160,7 @@ static int LoadLevel_MicroChunk(File *file, struct LevelFileConfigInfo *conf, value = getMappedElement(value); if (data_type == TYPE_BOOLEAN) - *(boolean *)(conf[i].value) = value; + *(boolean *)(conf[i].value) = (value ? TRUE : FALSE); else *(int *) (conf[i].value) = value; -- 2.34.1