- Fixed: FxClassTypeCast::Resolve didn't work for NULL classes because a variable

was not initialized.


SVN r1283 (trunk)
This commit is contained in:
Christoph Oelckers 2008-10-29 16:13:05 +00:00
parent b5e085e562
commit f1ae8119ab
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
October 29, 2008 (Changes by Graf Zahl)
- Fixed: FxClassTypeCast::Resolve didn't work for NULL classes because a variable
was not initialized.
October 28, 2008 (Changes by Graf Zahl) October 28, 2008 (Changes by Graf Zahl)
- Fixed: The railgun attack functions still read their puff parameters as names - Fixed: The railgun attack functions still read their puff parameters as names
even though they are now passed as class pointers. even though they are now passed as class pointers.

View file

@ -2474,7 +2474,7 @@ FxExpression *FxClassTypeCast::Resolve(FCompileContext &ctx)
if (basex->isConstant()) if (basex->isConstant())
{ {
FName clsname = basex->EvalExpression(NULL).GetName(); FName clsname = basex->EvalExpression(NULL).GetName();
const PClass *cls; const PClass *cls = NULL;
if (clsname != NAME_None || !ctx.isconst) if (clsname != NAME_None || !ctx.isconst)
{ {