[jasper/world/studio] Simplify EditWorldSizeCommand::mergeWith
All checks were successful
Build / build (push) Successful in 3m8s

This commit is contained in:
Gary Talent 2024-05-23 20:54:45 -05:00
parent b51098595a
commit 18e4183623

View File

@ -38,9 +38,8 @@ bool EditWorldSizeCommand::mergeWith(studio::UndoCommand const&cmd) noexcept {
m_newSize = es->m_newSize;
// undo
resize(m_doc, m_oldSize);
m_doc.tiles = std::move(m_oldMap);
m_doc.tiles = m_oldMap;
// redo
m_oldMap = m_doc.tiles;
resize(m_doc, m_newSize);
oxLogError(loadWorldStatic(m_objCache, m_doc).moveTo(m_worldStatic));
return true;