Simplify move assignment operator of attack_type::specials_context_t

This commit is contained in:
Jyrki Vesterinen 2018-03-25 09:47:36 +03:00
parent 44d9554361
commit c76967f443

View file

@ -786,8 +786,7 @@ attack_type::specials_context_t::specials_context_t(attack_type::specials_contex
attack_type::specials_context_t& attack_type::specials_context_t::operator=(attack_type::specials_context_t&& other)
{
// This ugly line calls into the default copy move assignment operator.
operator=(static_cast<attack_type::specials_context_t&>(other));
*this = other; // Copy assign.
other.was_moved = true;
return *this;
}