mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
component vector cleanup cleanup
This commit is contained in:
parent
e8c3c777d2
commit
7832458005
1 changed files with 2 additions and 1 deletions
|
|
@ -1391,7 +1391,7 @@ void Entity::clearComponents(bool deleteComponents)
|
|||
{
|
||||
while (mComponents.size() > 0)
|
||||
{
|
||||
Component* comp = mComponents.first();
|
||||
Component* comp = mComponents.last();
|
||||
|
||||
if (comp)
|
||||
{
|
||||
|
|
@ -1399,6 +1399,7 @@ void Entity::clearComponents(bool deleteComponents)
|
|||
|
||||
comp->deleteObject();
|
||||
}
|
||||
mComponents.pop_back();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue