1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Fix build

This commit is contained in:
MichalZr6
2025-05-04 17:31:42 +02:00
parent eb3addd32e
commit ef95f34bdb
2 changed files with 4 additions and 20 deletions

View File

@@ -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);