diff options
Diffstat (limited to 'labb4/GameState.cpp')
| -rw-r--r-- | labb4/GameState.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/labb4/GameState.cpp b/labb4/GameState.cpp index a21e49c..120e91a 100644 --- a/labb4/GameState.cpp +++ b/labb4/GameState.cpp @@ -35,6 +35,7 @@ GameState::~GameState() { } GameState& GameState::operator=(const GameState& other) { + if (this == &other) return *this; for (const auto& robot : robots) { delete robot; } |
