mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed accidental field instance copy
This commit is contained in:
parent
fe6d5fa16f
commit
3ff7fd86af
1 changed files with 1 additions and 1 deletions
|
@ -4628,7 +4628,7 @@ void BfModule::Visit(BfSwitchStatement* switchStmt)
|
||||||
if (isPayloadEnum)
|
if (isPayloadEnum)
|
||||||
{
|
{
|
||||||
auto enumType = switchValue.mType->ToTypeInstance();
|
auto enumType = switchValue.mType->ToTypeInstance();
|
||||||
for (auto fieldInstance : enumType->mFieldInstances)
|
for (auto& fieldInstance : enumType->mFieldInstances)
|
||||||
{
|
{
|
||||||
auto fieldDef = fieldInstance.GetFieldDef();
|
auto fieldDef = fieldInstance.GetFieldDef();
|
||||||
if (fieldDef->IsEnumCaseEntry())
|
if (fieldDef->IsEnumCaseEntry())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue