mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +00:00
Fix possible crash when loading applying a skeletal twice in one frame.
Possibly a regression from 300f326777
.
This commit is contained in:
parent
d6dc3a8a09
commit
65179870a9
2 changed files with 4 additions and 1 deletions
|
@ -967,6 +967,10 @@ void RenderObject::enqueueChildDeletion(RenderObject *r)
|
|||
{
|
||||
if (r->parent == this)
|
||||
{
|
||||
// Don't garbage a child more than once
|
||||
for (size_t i = 0; i < childGarbage.size(); ++i)
|
||||
if(childGarbage[i] == r)
|
||||
return;
|
||||
childGarbage.push_back(r);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue