diff --git a/src/Editor/Undo/CChangeLayerCommand.cpp b/src/Editor/Undo/CChangeLayerCommand.cpp index caa263be..0f68a12d 100644 --- a/src/Editor/Undo/CChangeLayerCommand.cpp +++ b/src/Editor/Undo/CChangeLayerCommand.cpp @@ -11,7 +11,7 @@ CChangeLayerCommand::CChangeLayerCommand(CWorldEditor *pEditor, const QListID()] = pLayer; } } @@ -24,7 +24,7 @@ void CChangeLayerCommand::undo() QList ScriptNodes; for (CSceneNode* pNode : Nodes) - ScriptNodes << static_cast(pNode); + ScriptNodes.push_back(static_cast(pNode)); for (CScriptNode *pNode : ScriptNodes) pNode->Instance()->SetLayer(mOldLayers[pNode->ID()]); @@ -39,7 +39,7 @@ void CChangeLayerCommand::redo() QList ScriptNodes; for (CSceneNode* pNode : Nodes) - ScriptNodes << static_cast(pNode); + ScriptNodes.push_back(static_cast(pNode)); for (CScriptNode *pNode : ScriptNodes) pNode->Instance()->SetLayer(mpNewLayer);