mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Null type check on EmitTypeBody
This commit is contained in:
parent
fefed0948e
commit
6f8ee9aef0
1 changed files with 1 additions and 1 deletions
|
@ -5305,7 +5305,7 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
|||
{
|
||||
int32 typeId = *(int32*)((uint8*)stackPtr);
|
||||
addr_ce strViewPtr = *(addr_ce*)((uint8*)stackPtr + sizeof(int32));
|
||||
if ((mCurEmitContext == NULL) || (mCurEmitContext->mType->mTypeId != typeId))
|
||||
if ((mCurEmitContext == NULL) || (mCurEmitContext->mType == NULL) || (mCurEmitContext->mType->mTypeId != typeId))
|
||||
{
|
||||
_Fail("Code cannot be emitted for this type in this context");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue