mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Make IObjectInterface::cb non-static
This commit is contained in:
@@ -347,7 +347,7 @@ std::unique_ptr<CMap> MainWindow::openMapInternal(const QString & filenameSelect
|
||||
if(!modList.empty())
|
||||
throw ModIncompatibility(modList);
|
||||
|
||||
return mapService.loadMap(resId);
|
||||
return mapService.loadMap(resId, nullptr);
|
||||
}
|
||||
else
|
||||
throw std::runtime_error("Corrupted map");
|
||||
@@ -546,7 +546,7 @@ void MainWindow::addGroupIntoCatalog(const std::string & groupName, bool useCust
|
||||
}
|
||||
|
||||
//create object to extract name
|
||||
std::unique_ptr<CGObjectInstance> temporaryObj(factory->create(templ));
|
||||
std::unique_ptr<CGObjectInstance> temporaryObj(factory->create(nullptr, templ));
|
||||
QString translated = useCustomName ? QString::fromStdString(temporaryObj->getObjectName().c_str()) : subGroupName;
|
||||
itemType->setText(translated);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user