diff --git a/src/world/Actor/Chara.cpp b/src/world/Actor/Chara.cpp index 769809de..0fb0f9e1 100644 --- a/src/world/Actor/Chara.cpp +++ b/src/world/Actor/Chara.cpp @@ -473,7 +473,7 @@ Sapphire::World::Action::ActionPtr Sapphire::Entity::Chara::getCurrentAction() c /*! \param ActionPtr of the action to be registered */ void Sapphire::Entity::Chara::setCurrentAction( Sapphire::World::Action::ActionPtr pAction ) { - m_pCurrentAction = pAction; + m_pCurrentAction = std::move( pAction ); } uint32_t Sapphire::Entity::Chara::getBonusStat( Common::BaseParam bonus ) const diff --git a/src/world/Actor/Player.cpp b/src/world/Actor/Player.cpp index 12cfb824..2feaf09f 100644 --- a/src/world/Actor/Player.cpp +++ b/src/world/Actor/Player.cpp @@ -2269,7 +2269,7 @@ bool Sapphire::Entity::Player::hasQueuedAction() const void Sapphire::Entity::Player::setQueuedAction( Sapphire::World::Action::ActionPtr pAction ) { - m_pQueuedAction = pAction; + m_pQueuedAction = std::move( pAction ); } bool Sapphire::Entity::Player::checkAction()