Simplify move assignment operator of attack_type::specials_context_t
This commit is contained in:
parent
44d9554361
commit
c76967f443
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue