allocate new map lastUpdatedBlockdata

This commit is contained in:
garakmon 2020-08-13 22:28:51 -04:00 committed by garak
parent 3c5401551d
commit 9fb938939f

View file

@ -1207,6 +1207,7 @@ void Project::setNewMapBlockdata(Map *map) {
blockdata->addBlock(qint16(0x3001));
}
map->layout->blockdata = blockdata;
map->layout->lastCommitMapBlocks.blocks = new Blockdata;
map->layout->lastCommitMapBlocks.blocks->copyFrom(map->layout->blockdata);
map->layout->lastCommitMapBlocks.dimensions = QSize(map->getWidth(), map->getHeight());
}