mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 08:31:45 +00:00
Added support for bool type in SetUserVariable() ACS function
https://mantis.zdoom.org/view.php?id=462
This commit is contained in:
parent
11e6cfc4c2
commit
1d84b28fc2
1 changed files with 1 additions and 1 deletions
|
@ -5040,7 +5040,7 @@ bool GetVarAddrType(AActor *self, FName varname, int index, void *&addr, PType *
|
||||||
}
|
}
|
||||||
addr = baddr;
|
addr = baddr;
|
||||||
// We don't want Int subclasses like Name or Color to be accessible here.
|
// 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.
|
// For reading, we also support Name and String types.
|
||||||
if (readonly && (type == TypeName || type == TypeString))
|
if (readonly && (type == TypeName || type == TypeString))
|
||||||
|
|
Loading…
Reference in a new issue