mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- fixed ZScript compiler crash with dereferencing null pointers
This commit is contained in:
parent
66bac45615
commit
2adf1c6a6b
1 changed files with 1 additions and 1 deletions
|
@ -6362,7 +6362,7 @@ FxExpression *FxMemberIdentifier::Resolve(FCompileContext& ctx)
|
||||||
if (Object->ValueType->isRealPointer())
|
if (Object->ValueType->isRealPointer())
|
||||||
{
|
{
|
||||||
auto ptype = Object->ValueType->toPointer()->PointedType;
|
auto ptype = Object->ValueType->toPointer()->PointedType;
|
||||||
if (ptype->isContainer())
|
if (ptype && ptype->isContainer())
|
||||||
{
|
{
|
||||||
auto ret = ResolveMember(ctx, ctx.Class, Object, static_cast<PContainerType *>(ptype));
|
auto ret = ResolveMember(ctx, ctx.Class, Object, static_cast<PContainerType *>(ptype));
|
||||||
delete this;
|
delete this;
|
||||||
|
|
Loading…
Reference in a new issue