mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-07 00:58:39 +02:00
Map objects now use shared_ptr (rmg)
This commit is contained in:
@ -82,7 +82,7 @@ void ObjectDistributor::distributeLimitedObjects()
|
||||
{
|
||||
ObjectInfo oi(primaryID, secondaryID);
|
||||
|
||||
oi.generateObject = [cb=map.mapInstance->cb, primaryID, secondaryID]() -> CGObjectInstance *
|
||||
oi.generateObject = [cb=map.mapInstance->cb, primaryID, secondaryID]()
|
||||
{
|
||||
return LIBRARY->objtypeh->getHandlerFor(primaryID, secondaryID)->create(cb, nullptr);
|
||||
};
|
||||
|
Reference in New Issue
Block a user