diff options
Diffstat (limited to 'backend/Player.cpp')
-rw-r--r-- | backend/Player.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/Player.cpp b/backend/Player.cpp index 5e0cca9..2de5632 100644 --- a/backend/Player.cpp +++ b/backend/Player.cpp @@ -6,6 +6,10 @@ #include "util.h" Player::Player(Dungeon & dungeon) : dungeon(dungeon) { } +Player::~Player() { + safe_free(this->weapon); + safe_free(this->armor); +} float Player::get_attack() const { if (this->cheating) return 1.f; |