Skip to content

Commit

Permalink
Add missing GC write barrier
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRaveYard authored and RicardoLuis0 committed Jun 30, 2024
1 parent ddbf903 commit a82e3b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/objects/dobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ void DObject::Destroy ()
}
OnDestroy();
ObjectFlags = (ObjectFlags & ~OF_Fixed) | OF_EuthanizeMe;
GC::WriteBarrier(this);
}

DEFINE_ACTION_FUNCTION(DObject, Destroy)
Expand Down

0 comments on commit a82e3b9

Please sign in to comment.