Skip to content

Commit

Permalink
C4Section::ExecObjects: Abort object execution if processing the curr…
Browse files Browse the repository at this point in the history
…ent object

caused the section to be deleted
  • Loading branch information
Fulgen301 committed Dec 4, 2024
1 parent 5e0f814 commit 7952fa4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/C4Section.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,11 @@ void C4Section::ExecObjects() // Every Tick1 by Execute
else
// Status reset: process removal delay
if ((*it)->RemovalDelay > 0) (*it)->RemovalDelay--;

if (IsDeleted())
{
return;
}
}

#ifdef DEBUGREC
Expand Down

0 comments on commit 7952fa4

Please sign in to comment.