mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
Removed problematic assert() from garbage collector
DObject::GetClass() cannot be called from Barrier() function Lazy evaluation it contains screwed up object type if called from base class constructor Example: DSeqSectorNode::DSeqSectorNode() -> DSeqNode::DSeqNode() -> GC::WriteBarrier() -> Barrier() https://mantis.zdoom.org/view.php?id=299
This commit is contained in:
parent
bdd20d3887
commit
b45418d363
1 changed files with 0 additions and 1 deletions
|
@ -544,7 +544,6 @@ void FullGC()
|
|||
|
||||
void Barrier(DObject *pointing, DObject *pointed)
|
||||
{
|
||||
assert(pointed->GetClass() != nullptr);
|
||||
assert(pointing == NULL || (pointing->IsBlack() && !pointing->IsDead()));
|
||||
assert(pointed->IsWhite() && !pointed->IsDead());
|
||||
assert(State != GCS_Finalize && State != GCS_Pause);
|
||||
|
|
Loading…
Reference in a new issue