Properly handle basis in Unit3::operator=

If the basis was already cached we reset it to the cached basis of
`u`.
release/4.3a0
Martin Vonheim Larsen 2020-06-02 13:02:22 +02:00
parent 7486ed7993
commit bc7f5e6da7
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ public:
/// Copy assignment /// Copy assignment
Unit3& operator=(const Unit3 & u) { Unit3& operator=(const Unit3 & u) {
p_ = u.p_; p_ = u.p_;
B_ = u.B_;
H_B_ = u.H_B_;
return *this; return *this;
} }