From 1d84b28fc2b7a2e1d3abbfb4f049024dc67da126 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 18 Apr 2017 15:37:45 +0300 Subject: [PATCH] Added support for bool type in SetUserVariable() ACS function https://mantis.zdoom.org/view.php?id=462 --- src/p_acs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 58288d9e1..5af056e3e 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -5040,7 +5040,7 @@ bool GetVarAddrType(AActor *self, FName varname, int index, void *&addr, PType * } addr = baddr; // We don't want Int subclasses like Name or Color to be accessible here. - if (!type->isInt() && !type->isFloat()) + if (!type->isInt() && !type->isFloat() && type != TypeBool) { // For reading, we also support Name and String types. if (readonly && (type == TypeName || type == TypeString))