Added support for bool type in SetUserVariable() ACS function

https://mantis.zdoom.org/view.php?id=462
This commit is contained in:
alexey.lysiuk 2017-04-18 15:37:45 +03:00
parent 11e6cfc4c2
commit 1d84b28fc2

View file

@ -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))