mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- Fixed: FxClassTypeCast::Resolve didn't work for NULL classes because a variable
was not initialized. SVN r1283 (trunk)
This commit is contained in:
parent
b5e085e562
commit
f1ae8119ab
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
- Fixed: The railgun attack functions still read their puff parameters as names
|
||||
even though they are now passed as class pointers.
|
||||
|
|
|
@ -2474,8 +2474,8 @@ FxExpression *FxClassTypeCast::Resolve(FCompileContext &ctx)
|
|||
if (basex->isConstant())
|
||||
{
|
||||
FName clsname = basex->EvalExpression(NULL).GetName();
|
||||
const PClass *cls;
|
||||
|
||||
const PClass *cls = NULL;
|
||||
|
||||
if (clsname != NAME_None || !ctx.isconst)
|
||||
{
|
||||
cls= PClass::FindClass(clsname);
|
||||
|
|
Loading…
Reference in a new issue