1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed uninitialized type deletion crash in debug mode

This commit is contained in:
Brian Fiete 2020-06-21 10:14:35 -07:00
parent d9b047a924
commit e892840a94

View file

@ -397,7 +397,8 @@ static int gDelIdx = 0;
BfType::~BfType()
{
BfLogSys(mContext->mSystem, "~BfType %p\n", this);
if (mContext != NULL)
BfLogSys(mContext->mSystem, "~BfType %p\n", this);
/*gDelIdx++;
auto typeInst = ToTypeInstance();