mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-16 08:27:01 +00:00
CTemplateListModel: Make use of push_back over operator<<
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
||||
if (mpGame)
|
||||
{
|
||||
for (uint32 iTemp = 0; iTemp < mpGame->NumScriptTemplates(); iTemp++)
|
||||
mTemplates << mpGame->TemplateByIndex(iTemp);
|
||||
mTemplates.push_back(mpGame->TemplateByIndex(iTemp));
|
||||
|
||||
std::sort(mTemplates.begin(), mTemplates.end(), [](CScriptTemplate *pLeft, CScriptTemplate *pRight) -> bool {
|
||||
return pLeft->Name() < pRight->Name();
|
||||
|
||||
Reference in New Issue
Block a user