mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +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)
|
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.
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue