mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Null protection in IsInstanceOf
This commit is contained in:
parent
da428d2c50
commit
eb55b2d731
1 changed files with 1 additions and 1 deletions
|
@ -1966,7 +1966,7 @@ public:
|
||||||
void Dispose();
|
void Dispose();
|
||||||
void ReleaseData();
|
void ReleaseData();
|
||||||
|
|
||||||
virtual bool IsInstanceOf(BfTypeDef* typeDef) override { return typeDef->GetDefinition() == mTypeDef->GetDefinition(); }
|
virtual bool IsInstanceOf(BfTypeDef* typeDef) override { if (typeDef == NULL) return false; return typeDef->GetDefinition() == mTypeDef->GetDefinition(); }
|
||||||
virtual BfModule* GetModule() override { return mModule; }
|
virtual BfModule* GetModule() override { return mModule; }
|
||||||
virtual BfTypeInstance* ToTypeInstance() override { return this; }
|
virtual BfTypeInstance* ToTypeInstance() override { return this; }
|
||||||
virtual bool IsDependentOnUnderlyingType() override { return true; }
|
virtual bool IsDependentOnUnderlyingType() override { return true; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue