diff --git a/Sources/Tools/MaxComponent/plComponentMgr.cpp b/Sources/Tools/MaxComponent/plComponentMgr.cpp index 6e32c8b9..1b91220c 100644 --- a/Sources/Tools/MaxComponent/plComponentMgr.cpp +++ b/Sources/Tools/MaxComponent/plComponentMgr.cpp @@ -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::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)