mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed single-item replace
This commit is contained in:
parent
a64997e395
commit
701e43bf1f
2 changed files with 28 additions and 16 deletions
|
@ -3317,7 +3317,7 @@ void BfModule::ResolveConstField(BfTypeInstance* typeInstance, BfFieldInstance*
|
|||
fieldType = fieldInstance->GetResolvedType();
|
||||
if ((fieldType == NULL) || (fieldType->IsVar()))
|
||||
{
|
||||
AssertZeberrorState();
|
||||
AssertErrorState();
|
||||
// Default const type is 'int'
|
||||
BfTypedValue initValue = GetDefaultTypedValue(GetPrimitiveType(BfTypeCode_IntPtr));
|
||||
if (fieldInstance != NULL)
|
||||
|
@ -3363,7 +3363,7 @@ BfType* BfModule::ResolveVarFieldType(BfTypeInstance* typeInstance, BfFieldInsta
|
|||
|
||||
if ((!field->mIsStatic) && (typeDef->mIsStatic))
|
||||
{
|
||||
AssertZeberrorState();
|
||||
AssertErrorState();
|
||||
return GetPrimitiveType(BfTypeCode_Var);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue