diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-11-10 15:33:46 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-11-10 15:33:46 +0100 |
| commit | 6f5cb7a9babdf57f5eae54fb468773857f48ecdd (patch) | |
| tree | 2b2c27e5ec90dde99956d065400fc39fd7324f4e /labb4/GameState.h | |
| parent | c3028edebab1d021d2d95a26beea3ccd58a4e28f (diff) | |
| download | tddd86-6f5cb7a9babdf57f5eae54fb468773857f48ecdd.tar.gz | |
copy assignment return when this == &other
Diffstat (limited to 'labb4/GameState.h')
| -rw-r--r-- | labb4/GameState.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/labb4/GameState.h b/labb4/GameState.h index 17b86de..eb10a70 100644 --- a/labb4/GameState.h +++ b/labb4/GameState.h @@ -76,7 +76,7 @@ public: private: std::vector<Robot*> robots; // the robots and the junk combined - Hero hero; // the hero + Hero hero; // the hero // private helpers bool isEmpty(const Unit& unit) const; |
