mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix crash on copy-pasting objects
This commit is contained in:
committed by
Michał Zaremba
parent
66e210f54d
commit
2ef964d859
@@ -381,7 +381,8 @@ void MapController::pasteFromClipboard(int level)
|
||||
if(_map->isInTheMap(newPos))
|
||||
obj->pos = newPos;
|
||||
obj->pos.z = level;
|
||||
|
||||
|
||||
obj->id = {};
|
||||
Initializer init(*this, obj.get(), defaultPlayer);
|
||||
_map->getEditManager()->insertObject(obj);
|
||||
_scenes[level]->selectionObjectsView.selectObject(obj.get());
|
||||
|
||||
Reference in New Issue
Block a user