diff --git a/include/Wave.hpp b/include/Wave.hpp index ffea0aa..5b716ff 100644 --- a/include/Wave.hpp +++ b/include/Wave.hpp @@ -71,8 +71,14 @@ class Wave : public ::Wave { } Wave& operator=(const Wave& other) { + if (&other != this) { + return *this; + } + Unload(); set(other.Copy()); + + return *this; }; Wave& operator=(Wave&& other) {