mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Don't throw away components that come last
This commit is contained in:
@ -102,13 +102,6 @@ int IDescCompare(ClassDesc *desc1, ClassDesc *desc2);
|
||||
|
||||
void plComponentMgr::Register(ClassDesc *desc)
|
||||
{
|
||||
// No descs? Go ahead and push it to the back...
|
||||
if (fDescs.size() == 0)
|
||||
{
|
||||
fDescs.push_back(desc);
|
||||
return;
|
||||
}
|
||||
|
||||
// Organize desc's by category and name
|
||||
std::vector<ClassDesc*>::iterator it;
|
||||
for (it = fDescs.begin(); it != fDescs.end(); it++)
|
||||
@ -119,6 +112,9 @@ void plComponentMgr::Register(ClassDesc *desc)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Still here? Push it to the back.
|
||||
fDescs.push_back(desc);
|
||||
}
|
||||
|
||||
int IDescCompare(ClassDesc *desc1, ClassDesc *desc2)
|
||||
|
Reference in New Issue
Block a user