From ec6d522a29b0d59c40898f8033905a389db8efba Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 9 Apr 2013 22:15:41 +0000 Subject: [PATCH] - 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) --- src/thingdef/thingdef_expression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thingdef/thingdef_expression.cpp b/src/thingdef/thingdef_expression.cpp index a5644b88f..93dc4086e 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -2523,9 +2523,9 @@ FxExpression *FxClassTypeCast::Resolve(FCompileContext &ctx) FName clsname = basex->EvalExpression(NULL).GetName(); 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 (!ctx.lax)