mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-23 09:21:35 +00:00
- added a few checks for null pointer types in the ZScript compiler.
This commit is contained in:
parent
ce34ef2921
commit
706c784965
2 changed files with 3 additions and 3 deletions
|
@ -8858,7 +8858,7 @@ FxExpression *FxMemberFunctionCall::Resolve(FCompileContext& ctx)
|
|||
}
|
||||
}
|
||||
|
||||
if (Self->ValueType->isRealPointer())
|
||||
if (Self->ValueType->isRealPointer() && Self->ValueType->toPointer()->PointedType)
|
||||
{
|
||||
auto ptype = Self->ValueType->toPointer()->PointedType;
|
||||
cls = ptype->toContainer();
|
||||
|
|
|
@ -348,8 +348,8 @@ public:
|
|||
bool IsQuaternion() const { return ValueType == TypeQuaternion || ValueType == TypeFQuaternion || ValueType == TypeQuaternionStruct; };
|
||||
bool IsBoolCompat() const { return ValueType->isScalar(); }
|
||||
bool IsObject() const { return ValueType->isObjectPointer(); }
|
||||
bool IsArray() const { return ValueType->isArray() || (ValueType->isPointer() && ValueType->toPointer()->PointedType->isArray()); }
|
||||
bool isStaticArray() const { return (ValueType->isPointer() && ValueType->toPointer()->PointedType->isStaticArray()); } // can only exist in pointer form.
|
||||
bool IsArray() const { return ValueType->isArray() || (ValueType->isPointer() && ValueType->toPointer()->PointedType && ValueType->toPointer()->PointedType->isArray()); }
|
||||
bool isStaticArray() const { return (ValueType->isPointer() && ValueType->toPointer()->PointedType && ValueType->toPointer()->PointedType->isStaticArray()); } // can only exist in pointer form.
|
||||
bool IsDynamicArray() const { return (ValueType->isDynArray()); }
|
||||
bool IsMap() const { return ValueType->isMap(); }
|
||||
bool IsMapIterator() const { return ValueType->isMapIterator(); }
|
||||
|
|
Loading…
Reference in a new issue