diff --git a/src/Editor/CNodeCopyMimeData.h b/src/Editor/CNodeCopyMimeData.h index f5eb7dd8..4b523877 100644 --- a/src/Editor/CNodeCopyMimeData.h +++ b/src/Editor/CNodeCopyMimeData.h @@ -75,7 +75,7 @@ public: Cooker.WriteInstance(Out, static_cast(*It)->Instance()); // Replace instance ID with 0xFFFFFFFF to force it to generate a new one. - Out.Seek(0x6, SEEK_SET); + Out.Seek(mGame <= ePrime ? 0x5 : 0x6, SEEK_SET); Out.WriteLong(0xFFFFFFFF); if (!SetFirstNodePos) diff --git a/src/Editor/Undo/CPasteNodesCommand.cpp b/src/Editor/Undo/CPasteNodesCommand.cpp index 84b0ea4a..eadf91c0 100644 --- a/src/Editor/Undo/CPasteNodesCommand.cpp +++ b/src/Editor/Undo/CPasteNodesCommand.cpp @@ -55,7 +55,7 @@ void CPasteNodesCommand::redo() if (rkNode.Type == eScriptNode) { CMemoryInStream In(rkNode.InstanceData.data(), rkNode.InstanceData.size(), IOUtil::eBigEndian); - CScriptObject *pInstance = CScriptLoader::LoadInstance(In, pArea, mpLayer, pArea->Game(), true); + CScriptObject *pInstance = CScriptLoader::LoadInstance(In, pArea, mpLayer, pArea->Game(), false); pArea->AddInstanceToArea(pInstance); mpLayer->AddInstance(pInstance);