mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed struct construction when type is unpopulated. Better error check.
This commit is contained in:
parent
2b6e1d0d5d
commit
33448603b1
3 changed files with 3 additions and 1 deletions
|
@ -1721,6 +1721,7 @@ bool BfTypeInstance::IsValuelessType()
|
|||
if (mTypeDef->mIsOpaque)
|
||||
return false;
|
||||
|
||||
BF_ASSERT(mDefineState >= BfTypeDefineState_Defined);
|
||||
BF_ASSERT(mInstSize >= 0);
|
||||
if (mInstSize == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue