mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed mIgnoreWrites restoration when !mHasStarted
This commit is contained in:
parent
fddd3e0ba6
commit
ff98747c4b
1 changed files with 2 additions and 1 deletions
|
@ -231,7 +231,8 @@ BfTypedValue BfConstResolver::Resolve(BfExpression* expr, BfType* wantType, BfCo
|
|||
|
||||
if ((flags & BfConstResolveFlag_NoActualizeValues) == 0)
|
||||
{
|
||||
prevIgnoreWrites.Restore();
|
||||
if (mModule->mBfIRBuilder->mHasStarted)
|
||||
prevIgnoreWrites.Restore();
|
||||
mModule->FixValueActualization(mResult, !prevIgnoreWrites.mPrevVal || ((flags & BfConstResolveFlag_ActualizeValues) != 0));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue