mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fix build
This commit is contained in:
@@ -614,7 +614,7 @@ void MapView::dropEvent(QDropEvent * event)
|
||||
if(sc->selectionObjectsView.newObject)
|
||||
{
|
||||
QString errorMsg;
|
||||
if(controller->canPlaceObject(sc->selectionObjectsView.newObject, errorMsg))
|
||||
if(controller->canPlaceObject(sc->selectionObjectsView.newObject.get(), errorMsg))
|
||||
{
|
||||
auto obj = sc->selectionObjectsView.newObject;
|
||||
controller->commitObjectCreate(sc->level);
|
||||
|
||||
Reference in New Issue
Block a user