1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Fix object names in editor

This commit is contained in:
Ivan Savenko 2023-02-09 21:33:33 +02:00
parent f57a77c2fe
commit 4ec13dc5ab

View File

@ -480,7 +480,7 @@ void MainWindow::addGroupIntoCatalog(const std::string & groupName, bool useCust
if(staticOnly && !factory->isStaticObject())
continue;
auto subGroupName = QString::fromStdString(factory->getNameTranslated());
auto subGroupName = QString::fromStdString(VLC->objtypeh->getObjectName(ID, secondaryID));
auto * itemType = new QStandardItem(subGroupName);
for(int templateId = 0; templateId < templates.size(); ++templateId)