mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Remove the requirement that only action function default parameters can accept a constant
expression that evaluates to the class 'None'. (I don't know why that was there to begin with.) SVN r4210 (trunk)
This commit is contained in:
parent
0a9a54fca8
commit
ec6d522a29
1 changed files with 2 additions and 2 deletions
|
@ -2523,9 +2523,9 @@ FxExpression *FxClassTypeCast::Resolve(FCompileContext &ctx)
|
||||||
FName clsname = basex->EvalExpression(NULL).GetName();
|
FName clsname = basex->EvalExpression(NULL).GetName();
|
||||||
const PClass *cls = NULL;
|
const PClass *cls = NULL;
|
||||||
|
|
||||||
if (clsname != NAME_None || !ctx.isconst)
|
if (clsname != NAME_None)
|
||||||
{
|
{
|
||||||
cls= PClass::FindClass(clsname);
|
cls = PClass::FindClass(clsname);
|
||||||
if (cls == NULL)
|
if (cls == NULL)
|
||||||
{
|
{
|
||||||
if (!ctx.lax)
|
if (!ctx.lax)
|
||||||
|
|
Loading…
Reference in a new issue