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