CTemplateListModel: Mark sort parameters as const

This commit is contained in:
Lioncash 2020-07-10 15:46:29 -04:00
parent 8bc375f001
commit b355dbe07e
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public:
for (uint32 iTemp = 0; iTemp < mpGame->NumScriptTemplates(); iTemp++)
mTemplates.push_back(mpGame->TemplateByIndex(iTemp));
std::sort(mTemplates.begin(), mTemplates.end(), [](CScriptTemplate *pLeft, CScriptTemplate *pRight) -> bool {
std::sort(mTemplates.begin(), mTemplates.end(), [](const CScriptTemplate *pLeft, const CScriptTemplate *pRight) {
return pLeft->Name() < pRight->Name();
});
}